2020-08-10 22:58:40 +01:00
|
|
|
{ stdenv
|
|
|
|
, git
|
|
|
|
, gnupg1
|
|
|
|
, python3Packages
|
|
|
|
}:
|
2016-10-25 17:25:08 +01:00
|
|
|
|
2020-08-10 22:58:40 +01:00
|
|
|
with python3Packages; buildPythonApplication rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "reno";
|
2020-08-10 22:58:40 +01:00
|
|
|
version = "3.1.0";
|
2016-10-25 17:25:08 +01:00
|
|
|
|
2020-08-10 22:58:40 +01:00
|
|
|
# Must be built from python sdist because of versioning quirks
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "2510e3aae4874674187f88f22f854e6b0ea1881b77039808a68ac1a5e8ee69b6";
|
2016-10-25 17:25:08 +01:00
|
|
|
};
|
|
|
|
|
2020-08-10 22:58:40 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dulwich
|
|
|
|
pbr
|
|
|
|
pyyaml
|
|
|
|
setuptools # required for finding pkg_resources at runtime
|
|
|
|
];
|
2016-10-25 17:25:08 +01:00
|
|
|
|
2020-08-10 22:58:40 +01:00
|
|
|
checkInputs = [
|
|
|
|
# Python packages
|
|
|
|
pytestCheckHook
|
|
|
|
docutils
|
|
|
|
fixtures
|
|
|
|
sphinx
|
|
|
|
testtools
|
|
|
|
testscenarios
|
2016-10-25 17:25:08 +01:00
|
|
|
|
2020-08-10 22:58:40 +01: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 17:25:08 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Release Notes Manager";
|
2020-08-10 22:58:40 +01:00
|
|
|
homepage = "https://docs.openstack.org/reno/latest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger guillaumekoenig ];
|
2016-10-25 17:25:08 +01:00
|
|
|
};
|
|
|
|
}
|