diff --git a/default.nix b/default.nix index 9ffc0c3..6b2642e 100644 --- a/default.nix +++ b/default.nix @@ -2,15 +2,15 @@ pkgs ? import { }, }: -pkgs.python311.pkgs.buildPythonApplication { +pkgs.python3.pkgs.buildPythonApplication { pname = "nix-update"; - version = "1.0.0"; + version = "1.5.2"; src = ./.; - format = "pyproject"; + pyproject = true; buildInputs = [ pkgs.makeWrapper ]; - nativeBuildInputs = [ pkgs.python311.pkgs.setuptools ]; + nativeBuildInputs = [ pkgs.python3.pkgs.setuptools ]; nativeCheckInputs = [ - pkgs.python311.pkgs.pytest + pkgs.python3.pkgs.pytest # technically not test inputs, but we need it for development in PATH pkgs.nixVersions.stable pkgs.nix-prefetch-git @@ -22,12 +22,9 @@ pkgs.python311.pkgs.buildPythonApplication { "--prefix PATH" ":" (pkgs.lib.makeBinPath [ - pkgs.nixVersions.stable or pkgs.nix_2_4 + pkgs.nixVersions.stable pkgs.nixpkgs-review pkgs.nix-prefetch-git ]) ]; - shellHook = '' - # workaround because `python setup.py develop` breaks for me - ''; } diff --git a/flake.lock b/flake.lock index d88499a..e72ce0f 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1726153070, - "narHash": "sha256-HO4zgY0ekfwO5bX0QH/3kJ/h4KvUDFZg8YpkNwIbg1U=", + "lastModified": 1730504689, + "narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a", + "rev": "506278e768c2a08bec68eb62932193e341f55c90", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1727617520, - "narHash": "sha256-uNfh3aMyCekMpjtL/PZtl2Hz/YqNuUpCBEzVxt1QYck=", + "lastModified": 1730958623, + "narHash": "sha256-JwQZIGSYnRNOgDDoIgqKITrPVil+RMWHsZH1eE1VGN0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7eee17a8a5868ecf596bbb8c8beb527253ea8f4d", + "rev": "85f7e662eda4fa3a995556527c87b2524b691933", "type": "github" }, "original": { @@ -50,11 +50,11 @@ ] }, "locked": { - "lastModified": 1727431250, - "narHash": "sha256-uGRlRT47ecicF9iLD1G3g43jn2e+b5KaMptb59LHnvM=", + "lastModified": 1730321837, + "narHash": "sha256-vK+a09qq19QNu2MlLcvN4qcRctJbqWkX7ahgPZ/+maI=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "879b29ae9a0378904fbbefe0dadaed43c8905754", + "rev": "746901bb8dba96d154b66492a29f5db0693dbfcc", "type": "github" }, "original": { diff --git a/treefmt.nix b/treefmt.nix index a6f5ab9..4e51958 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -10,17 +10,17 @@ projectRootFile = "flake.lock"; programs.deno.enable = - pkgs.lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.deno && !pkgs.deno.meta.broken; + pkgs.hostPlatform.system != "x86_64-darwin" && pkgs.hostPlatform.system != "riscv64-linux"; programs.mypy.enable = true; programs.yamlfmt.enable = true; - programs.nixfmt.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.nixfmt-rfc-style.compiler; + programs.nixfmt.enable = pkgs.hostPlatform.system != "riscv64-linux"; programs.deadnix.enable = true; programs.ruff.format = true; programs.ruff.check = true; - programs.shellcheck.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.shellcheck.compiler; + programs.shellcheck.enable = pkgs.hostPlatform.system != "riscv64-linux"; programs.shfmt.enable = true; settings.formatter.shfmt.includes = [ "*.envrc" ]; };