at master 784 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5}: 6 7buildPythonPackage rec { 8 pname = "attrs"; 9 version = "21.4.0"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-YmuoI0IR25joad92IwoTfExAoS1yRFxF1fW3FvB24v0="; 15 }; 16 17 outputs = [ 18 "out" 19 "testout" 20 ]; 21 22 postInstall = '' 23 # Install tests as the tests output. 24 mkdir $testout 25 cp -R tests $testout/tests 26 ''; 27 28 pythonImportsCheck = [ 29 "attr" 30 ]; 31 32 # pytest depends on attrs, so we can't do this out-of-the-box. 33 # Instead, we do this as a passthru.tests test. 34 doCheck = false; 35 36 meta = with lib; { 37 description = "Python attributes without boilerplate"; 38 homepage = "https://github.com/hynek/attrs"; 39 license = licenses.mit; 40 maintainers = [ ]; 41 }; 42}