Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 53 lines 885 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, dateutil 5, sigtools 6, six 7, attrs 8, od 9, docutils 10, repeated_test 11, pygments 12, unittest2 13, pytestCheckHook 14}: 15 16buildPythonPackage rec { 17 pname = "clize"; 18 version = "4.1.1"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187"; 23 }; 24 25 # Remove overly restrictive version constraints 26 postPatch = '' 27 substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs" 28 ''; 29 30 checkInputs = [ 31 pytestCheckHook 32 dateutil 33 pygments 34 repeated_test 35 unittest2 36 ]; 37 38 propagatedBuildInputs = [ 39 attrs 40 docutils 41 od 42 sigtools 43 six 44 ]; 45 46 pythonImportsCheck = [ "clize" ]; 47 48 meta = with lib; { 49 description = "Command-line argument parsing for Python"; 50 homepage = "https://github.com/epsy/clize"; 51 license = licenses.mit; 52 }; 53}