9 buildPythonPackage rec {
12 disabled = pythonOlder "3.7";
16 inherit pname version;
17 hash = "sha256-YnmDbVgVE6JvG/I1+azTM7yRFWg/FPfo+uRsmPxQ4BU=";
21 # hatch-vcs and hatch-fancy-pypi-readme depend on pytest, which depends on attrs
22 ./remove-hatch-plugins.patch
26 substituteAllInPlace pyproject.toml
39 # Install tests as the tests output.
41 cp -R conftest.py tests $testout
44 pythonImportsCheck = [
48 # pytest depends on attrs, so we can't do this out-of-the-box.
49 # Instead, we do this as a passthru.tests test.
53 pytest = callPackage ./tests.nix { };
57 description = "Python attributes without boilerplate";
58 homepage = "https://github.com/python-attrs/attrs";
59 changelog = "https://github.com/python-attrs/attrs/releases/tag/${version}";
60 license = licenses.mit;
61 maintainers = with maintainers; [ ];