Skip to content

Commit

Permalink
python313Packages.traits: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Jan 19, 2025
1 parent 71b5f98 commit 9f99c0e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pkgs/development/python-modules/traits/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
buildPythonPackage,
fetchPypi,
pythonOlder,
fetchpatch2,
setuptools,
}:

buildPythonPackage rec {
pname = "traits";
version = "6.4.3";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.6";

Expand All @@ -17,15 +19,22 @@ buildPythonPackage rec {
hash = "sha256-qbv9ngwIt94H6G72TmnLlqKcIQWkO/gyzYsWL6HiL0Q=";
};

# Circular dependency
doCheck = false;
patches = [
(fetchpatch2 {
url = "https://github.com/enthought/traits/commit/a20f2154b2c79eb8550ea9228d1a4415ff51b72a.patch";
hash = "sha256-ycStcpxlvmobL3ZXaSbGrXAzk/Tkjs3BJ67lnwZpeVA=";
excludes = [ ".github/*" ];
})
];

build-system = [ setuptools ];

pythonImportsCheck = [ "traits" ];

meta = with lib; {
meta = {
description = "Explicitly typed attributes for Python";
homepage = "https://pypi.python.org/pypi/traits";
license = licenses.bsd3;
maintainers = [ ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ bot-wxt1221 ];
};
}

0 comments on commit 9f99c0e

Please sign in to comment.