Skip to content

Commit

Permalink
fixup! python3Packages.pytools: 2024.1.6 -> 2024.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Oct 9, 2024
1 parent 4981fdb commit 2c6dccd
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions pkgs/development/python-modules/pytools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,37 @@
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
decorator,
numpy,
platformdirs,
typing-extensions,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:

buildPythonPackage rec {
pname = "pytools";
version = "2024.1.14";
format = "setuptools";
disabled = pythonOlder "3.6";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-OeW7r4H6Qy5oi4LdCYAhLRj5eyPlGox6/nWSJJ/kCrE=";
};

propagatedBuildInputs = [
decorator
numpy
build-system = [ setuptools ];

dependencies = [
platformdirs
] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
typing-extensions
];

optional-dependencies = {
numpy = [ numpy ];
# siphash = [ siphash ];
};

nativeCheckInputs = [ pytestCheckHook ];

Expand All @@ -35,9 +42,18 @@ buildPythonPackage rec {
"pytools.lex"
];

disabledTests = [
# siphash is not available
"test_class_hashing"
"test_dataclass_hashing"
"test_datetime_hashing"
"test_hash_function"
];

meta = {
homepage = "https://github.com/inducer/pytools/";
description = "Miscellaneous Python lifesavers";
homepage = "https://github.com/inducer/pytools/";
changelo = "https://github.com/inducer/pytools/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ artuuge ];
};
Expand Down

0 comments on commit 2c6dccd

Please sign in to comment.