mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
57 lines
996 B
Nix
57 lines
996 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pbr
|
|
, prettytable
|
|
, pyparsing
|
|
, six
|
|
, stevedore
|
|
, pyyaml
|
|
, unicodecsv
|
|
, cmd2
|
|
, pytest
|
|
, mock
|
|
, testtools
|
|
, fixtures
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cliff";
|
|
version = "3.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0j9q6725226hdhdyy9b0qfjngdj35d3y7fxbmfxpr36ksbh0x6sj";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pbr
|
|
prettytable
|
|
pyparsing
|
|
six
|
|
stevedore
|
|
pyyaml
|
|
cmd2
|
|
unicodecsv
|
|
];
|
|
|
|
# remove version constraints
|
|
postPatch = ''
|
|
sed -i '/cmd2/c\cmd2' requirements.txt
|
|
'';
|
|
|
|
checkInputs = [ fixtures mock pytest testtools ];
|
|
# add some tests
|
|
checkPhase = ''
|
|
pytest cliff/tests/test_{utils,app,command,help,lister}.py \
|
|
-k 'not interactive_mode'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command Line Interface Formulation Framework";
|
|
homepage = "https://docs.openstack.org/cliff/latest/";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|