lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #183375 from SuperSandro2000/python310Packages.attrs

authored by

Martin Weinelt and committed by
GitHub
9a872eb2 5109b09c

+51 -3
+5 -3
pkgs/development/python-modules/attrs/default.nix
··· 2 2 , callPackage 3 3 , buildPythonPackage 4 4 , fetchPypi 5 + , pythonOlder 5 6 }: 6 7 7 8 buildPythonPackage rec { 8 9 pname = "attrs"; 9 - version = "21.4.0"; 10 + version = "22.1.0"; 11 + disabled = pythonOlder "3.5"; 10 12 11 13 src = fetchPypi { 12 14 inherit pname version; 13 - hash = "sha256-YmuoI0IR25joad92IwoTfExAoS1yRFxF1fW3FvB24v0="; 15 + hash = "sha256-Ka3CZlRH5RkdDnxWj954sh+WctNEKB0MbhqwhUKbIrY="; 14 16 }; 15 17 16 18 outputs = [ ··· 38 40 39 41 meta = with lib; { 40 42 description = "Python attributes without boilerplate"; 41 - homepage = "https://github.com/hynek/attrs"; 43 + homepage = "https://github.com/python-attrs/attrs"; 42 44 license = licenses.mit; 43 45 maintainers = with maintainers; [ ]; 44 46 };
+45
pkgs/development/python2-modules/attrs/default.nix
··· 1 + { lib 2 + , callPackage 3 + , buildPythonPackage 4 + , fetchPypi 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "attrs"; 9 + version = "21.4.0"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + hash = "sha256-YmuoI0IR25joad92IwoTfExAoS1yRFxF1fW3FvB24v0="; 14 + }; 15 + 16 + outputs = [ 17 + "out" 18 + "testout" 19 + ]; 20 + 21 + postInstall = '' 22 + # Install tests as the tests output. 23 + mkdir $testout 24 + cp -R tests $testout/tests 25 + ''; 26 + 27 + pythonImportsCheck = [ 28 + "attr" 29 + ]; 30 + 31 + # pytest depends on attrs, so we can't do this out-of-the-box. 32 + # Instead, we do this as a passthru.tests test. 33 + doCheck = false; 34 + 35 + passthru.tests = { 36 + pytest = callPackage ./tests.nix { }; 37 + }; 38 + 39 + meta = with lib; { 40 + description = "Python attributes without boilerplate"; 41 + homepage = "https://github.com/hynek/attrs"; 42 + license = licenses.mit; 43 + maintainers = with maintainers; [ ]; 44 + }; 45 + }
+1
pkgs/top-level/python2-packages.nix
··· 5 5 self: super: 6 6 7 7 with self; with super; { 8 + attrs = callPackage ../development/python2-modules/attrs { }; 8 9 9 10 bootstrapped-pip = callPackage ../development/python2-modules/bootstrapped-pip { }; 10 11