python310Packages.attrs: 21.4.0 -> 22.1.0

This commit is contained in:
Sandro Jäckel 2022-07-28 17:59:55 +02:00 committed by Sandro Jäckel
parent 8e1888fb91
commit 67dece3b2c
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
3 changed files with 51 additions and 3 deletions

View file

@ -2,15 +2,17 @@
, callPackage
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "attrs";
version = "21.4.0";
version = "22.1.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-YmuoI0IR25joad92IwoTfExAoS1yRFxF1fW3FvB24v0=";
hash = "sha256-Ka3CZlRH5RkdDnxWj954sh+WctNEKB0MbhqwhUKbIrY=";
};
outputs = [
@ -38,7 +40,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python attributes without boilerplate";
homepage = "https://github.com/hynek/attrs";
homepage = "https://github.com/python-attrs/attrs";
license = licenses.mit;
maintainers = with maintainers; [ ];
};

View file

@ -0,0 +1,45 @@
{ lib
, callPackage
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "attrs";
version = "21.4.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-YmuoI0IR25joad92IwoTfExAoS1yRFxF1fW3FvB24v0=";
};
outputs = [
"out"
"testout"
];
postInstall = ''
# Install tests as the tests output.
mkdir $testout
cp -R tests $testout/tests
'';
pythonImportsCheck = [
"attr"
];
# pytest depends on attrs, so we can't do this out-of-the-box.
# Instead, we do this as a passthru.tests test.
doCheck = false;
passthru.tests = {
pytest = callPackage ./tests.nix { };
};
meta = with lib; {
description = "Python attributes without boilerplate";
homepage = "https://github.com/hynek/attrs";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -5,6 +5,7 @@
self: super:
with self; with super; {
attrs = callPackage ../development/python2-modules/attrs { };
bootstrapped-pip = callPackage ../development/python2-modules/bootstrapped-pip { };