Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 30 lines 873 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, isPy27, isPy34 3, pylev, pastel, typing, enum34 }: 4 5buildPythonPackage rec { 6 pname = "clikit"; 7 version = "0.3.2"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "1pvzq3glf4sjgrm0wyxln3s6vicdc9q8r5sgaiqmxdmd9pylw0xm"; 12 }; 13 14 propagatedBuildInputs = [ 15 pylev pastel 16 ] ++ lib.optional (isPy27 || isPy34) typing 17 ++ lib.optional isPy27 enum34; 18 19 # The Pypi tarball doesn't include tests, and the GitHub source isn't 20 # buildable until we bootstrap poetry, see 21 # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 22 doCheck = false; 23 24 meta = with lib; { 25 homepage = https://github.com/sdispater/clikit; 26 description = "A group of utilities to build beautiful and testable command line interfaces"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ jakewaksbaum ]; 29 }; 30}