add pytest to flake

This commit is contained in:
Awen Lelu 2025-12-01 14:46:45 +01:00
parent 77080eae25
commit a4e6964559
2 changed files with 13 additions and 7 deletions

16
flake.lock generated
View File

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 0, "lastModified": 1764522689,
"narHash": "sha256-TvODmeR2W7yX/JmOCmP+lAFNkTT7hAxYcF3Kz8SZV3w=", "narHash": "sha256-SqUuBFjhl/kpDiVaKLQBoD8TLD+/cTUzzgVFoaHrkqY=",
"path": "/nix/store/mzchpp2c3mgdzl6ah0qxwcxg32cnlcfv-source", "owner": "nixos",
"type": "path" "repo": "nixpkgs",
"rev": "8bb5646e0bed5dbd3ab08c7a7cc15b75ab4e1d0f",
"type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "nixos",
"type": "indirect" "ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View File

@ -1,10 +1,11 @@
{ {
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
outputs = outputs =
{ nixpkgs, ... }: { nixpkgs, ... }:
{ {
devShells.x86_64-linux = devShells.x86_64-linux =
let let
python = pkgs.python312Full; python = pkgs.python312;
pythonEnv = python.withPackages ( pythonEnv = python.withPackages (
ps: with ps; [ ps: with ps; [
pip pip
@ -15,6 +16,7 @@
ruff ruff
jedi-language-server jedi-language-server
pytest
] ]
); );
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };