Unverified Commit 9f99c0e0 authored by wxt's avatar wxt
Browse files

python313Packages.traits: fix build

parent 71b5f989
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -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";

@@ -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 ];
  };
}