lol

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

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