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