nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 68 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, autopage 5, cmd2 6, installShellFiles 7, openstackdocstheme 8, pbr 9, prettytable 10, pyparsing 11, pyyaml 12, stevedore 13, sphinx 14, callPackage 15}: 16 17buildPythonPackage rec { 18 pname = "cliff"; 19 version = "3.10.1"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "sha256-BFruPzxkRxll161QfOhHSk4vIIFfu1QFp3D4WWoqAKA="; 24 }; 25 26 postPatch = '' 27 # only a small portion of the listed packages are actually needed for running the tests 28 # so instead of removing them one by one remove everything 29 rm test-requirements.txt 30 ''; 31 32 nativeBuildInputs = [ 33 installShellFiles 34 openstackdocstheme 35 sphinx 36 ]; 37 38 propagatedBuildInputs = [ 39 autopage 40 cmd2 41 pbr 42 prettytable 43 pyparsing 44 pyyaml 45 stevedore 46 ]; 47 48 postInstall = '' 49 sphinx-build -a -E -d doc/build/doctrees -b man doc/source doc/build/man 50 installManPage doc/build/man/cliff.1 51 ''; 52 53 # check in passthru.tests.pytest to escape infinite recursion with stestr 54 doCheck = false; 55 56 pythonImportsCheck = [ "cliff" ]; 57 58 passthru.tests = { 59 pytest = callPackage ./tests.nix { }; 60 }; 61 62 meta = with lib; { 63 description = "Command Line Interface Formulation Framework"; 64 homepage = "https://github.com/openstack/cliff"; 65 license = licenses.asl20; 66 maintainers = teams.openstack.members; 67 }; 68}