11 buildPythonPackage rec {
14 disabled = pythonOlder "3.7";
18 inherit pname version;
19 hash = "sha256-XPsbkUi1sIZWm67APyDXtr87ysyaQr6/h/+qyjYvY0Y=";
24 # hatch-vcs and hatch-fancy-pypi-readme depend on pytest, which depends on attrs
25 src = ./remove-hatch-plugins.patch;
30 nativeBuildInputs = [ hatchling ];
38 # Install tests as the tests output.
40 cp -R conftest.py tests $testout
43 pythonImportsCheck = [ "attr" ];
45 # pytest depends on attrs, so we can't do this out-of-the-box.
46 # Instead, we do this as a passthru.tests test.
50 pytest = callPackage ./tests.nix { };
54 description = "Python attributes without boilerplate";
55 homepage = "https://github.com/python-attrs/attrs";
56 changelog = "https://github.com/python-attrs/attrs/releases/tag/${version}";
57 license = licenses.mit;