Skip to content

Commit

Permalink
Updated nixpkgs. Added custom mypy build. (#1636)
Browse files Browse the repository at this point in the history
* Updated nixpkgs. Added custom mypy build (required version isn't in nixpkgs)

* Used overrideAttrs on nixpkgs' mypy rather than a new derivation as per @johnchildren's suggestion
  • Loading branch information
jake-arkinstall authored and yao-cqc committed Oct 28, 2024
1 parent a3ae551 commit d8ba24c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nix-support/pytket.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ in {
} $out/lib/python${super.python3.pythonVersion}/site-packages/pytket/circuit/display/static;
'';
checkInputs = with super.python3.pkgs; [
mypy
self.mypy'
pytest
pytest-cov
pytest-benchmark
Expand Down
10 changes: 10 additions & 0 deletions nix-support/third-party-python-packages.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
self: super: {
mypy' = super.python3Packages.mypy.overrideAttrs (oldAttrs: rec {
version = "1.13.0";
name = "python${super.python3.pythonVersion}-mypy-${version}";
src = super.fetchFromGitHub {
owner = "python";
repo = "mypy";
rev = "refs/tags/v${version}";
hash = sha256:P2Ozmj7/7QBmjlveHLsNdYgUAerg0qOoa8pO0iQc5os=;
};
});
pybind11_json = super.stdenv.mkDerivation {
name = "pybind11_json";
src = super.fetchFromGitHub {
Expand Down

0 comments on commit d8ba24c

Please sign in to comment.