lol

python3.pkgs.icontract: remove plain text files from package

+17 -24
+17 -24
pkgs/development/python-modules/icontract/default.nix
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 , asttokens 6 - , typing-extensions 7 - , pytestCheckHook 8 - , yapf 9 - , docutils 10 - , pygments 11 , dpcontracts 12 - , tabulate 13 - , py-cpuinfo 14 - , typeguard 15 - , astor 16 , numpy 17 - , asyncstdlib 18 - , deal 19 }: 20 21 buildPythonPackage rec { ··· 38 export ICONTRACT_SLOW=1 39 ''; 40 41 - 42 propagatedBuildInputs = [ 43 asttokens 44 typing-extensions 45 ]; 46 47 checkInputs = [ 48 - pytestCheckHook 49 - yapf 50 - docutils 51 - pygments 52 - dpcontracts 53 - tabulate 54 - py-cpuinfo 55 - typeguard 56 astor 57 - numpy 58 asyncstdlib 59 deal 60 ]; 61 62 disabledTestPaths = [ 63 - # mypy decorator checks don't pass. For some reaseon mypy 64 # doesn't check the python file provided in the test. 65 "tests/test_mypy_decorators.py" 66 ]; 67 68 pythonImportsCheck = [ "icontract" ]; 69 70 meta = with lib; { 71 description = "Provide design-by-contract with informative violation messages"; 72 homepage = "https://github.com/Parquery/icontract"; 73 - changelog = "https://github.com/Parquery/icontract/blob/master/CHANGELOG.rst"; 74 license = licenses.mit; 75 - maintainers = with maintainers; [ gador ]; 76 }; 77 }
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchFromGitHub 5 + , astor 6 , asttokens 7 + , asyncstdlib 8 + , deal 9 , dpcontracts 10 , numpy 11 + , pytestCheckHook 12 + , typing-extensions 13 }: 14 15 buildPythonPackage rec { ··· 32 export ICONTRACT_SLOW=1 33 ''; 34 35 propagatedBuildInputs = [ 36 asttokens 37 typing-extensions 38 ]; 39 40 checkInputs = [ 41 astor 42 asyncstdlib 43 deal 44 + dpcontracts 45 + numpy 46 + pytestCheckHook 47 ]; 48 49 disabledTestPaths = [ 50 + # mypy decorator checks don't pass. For some reason mypy 51 # doesn't check the python file provided in the test. 52 "tests/test_mypy_decorators.py" 53 ]; 54 55 + # Upstream adds some plain text files direct to the package's root directory 56 + # https://github.com/Parquery/icontract/blob/master/setup.py#L63 57 + postInstall = '' 58 + rm -f $out/{LICENSE.txt,README.rst,requirements.txt} 59 + ''; 60 + 61 pythonImportsCheck = [ "icontract" ]; 62 63 meta = with lib; { 64 description = "Provide design-by-contract with informative violation messages"; 65 homepage = "https://github.com/Parquery/icontract"; 66 + changelog = "https://github.com/Parquery/icontract/blob/v${version}/CHANGELOG.rst"; 67 license = licenses.mit; 68 + maintainers = with maintainers; [ gador thiagokokada ]; 69 }; 70 }