Skip to content

Commit

Permalink
python312Packages.traittypes: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed Jul 26, 2024
1 parent 55f73fe commit 671b502
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkgs/development/python-modules/traittypes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
fetchFromGitHub,
isPy27,
pytestCheckHook,
setuptools,
numpy,
pandas,
xarray,
Expand All @@ -13,7 +14,7 @@
buildPythonPackage rec {
pname = "traittypes";
version = "unstable-2020-07-17";
format = "setuptools";
pyproject = true;

disabled = isPy27;

Expand All @@ -29,7 +30,9 @@ buildPythonPackage rec {
--replace-fail "np.int" "int"
'';

propagatedBuildInputs = [ traitlets ];
build-system = [ setuptools ];

dependencies = [ traitlets ];

nativeCheckInputs = [
numpy
Expand All @@ -40,10 +43,10 @@ buildPythonPackage rec {

pythonImportsCheck = [ "traittypes" ];

meta = with lib; {
meta = {
description = "Trait types for NumPy, SciPy, XArray, and Pandas";
homepage = "https://github.com/jupyter-widgets/traittypes";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}

0 comments on commit 671b502

Please sign in to comment.