2020-08-10 21:58:40 +00:00
|
|
|
{ stdenv
|
|
|
|
, git
|
|
|
|
, gnupg1
|
|
|
|
, python3Packages
|
|
|
|
}:
|
2016-10-25 16:25:08 +00:00
|
|
|
|
2020-08-10 21:58:40 +00:00
|
|
|
with python3Packages; buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "reno";
|
2020-08-10 21:58:40 +00:00
|
|
|
version = "3.1.0";
|
2016-10-25 16:25:08 +00:00
|
|
|
|
2020-08-10 21:58:40 +00:00
|
|
|
# Must be built from python sdist because of versioning quirks
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "2510e3aae4874674187f88f22f854e6b0ea1881b77039808a68ac1a5e8ee69b6";
|
2016-10-25 16:25:08 +00:00
|
|
|
};
|
|
|
|
|
2020-08-10 21:58:40 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dulwich
|
|
|
|
pbr
|
|
|
|
pyyaml
|
|
|
|
setuptools # required for finding pkg_resources at runtime
|
|
|
|
];
|
2016-10-25 16:25:08 +00:00
|
|
|
|
2020-08-10 21:58:40 +00:00
|
|
|
checkInputs = [
|
|
|
|
# Python packages
|
|
|
|
pytestCheckHook
|
|
|
|
docutils
|
|
|
|
fixtures
|
|
|
|
sphinx
|
|
|
|
testtools
|
|
|
|
testscenarios
|
2016-10-25 16:25:08 +00:00
|
|
|
|
2020-08-10 21:58:40 +00:00
|
|
|
# Required programs to run all tests
|
|
|
|
git
|
|
|
|
gnupg1
|
|
|
|
];
|
|
|
|
|
|
|
|
# remove b/c doesn't list all dependencies, and requires a few packages not in nixpkgs
|
|
|
|
postPatch = ''
|
|
|
|
rm test-requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_build_cache_db" # expects to be run from a git repository
|
|
|
|
];
|
|
|
|
|
|
|
|
# verify executable
|
|
|
|
postCheck = ''
|
|
|
|
$out/bin/reno -h
|
|
|
|
'';
|
2016-10-25 16:25:08 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Release Notes Manager";
|
2020-08-10 21:58:40 +00:00
|
|
|
homepage = "https://docs.openstack.org/reno/latest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger guillaumekoenig ];
|
2016-10-25 16:25:08 +00:00
|
|
|
};
|
|
|
|
}
|