2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-08-20 17:08:02 +00:00
|
|
|
, git
|
|
|
|
, gnupg1
|
|
|
|
, python3Packages
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
with python3Packages; buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "reno";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "3.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# Must be built from python sdist because of versioning quirks
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "2510e3aae4874674187f88f22f854e6b0ea1881b77039808a68ac1a5e8ee69b6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dulwich
|
|
|
|
pbr
|
|
|
|
pyyaml
|
|
|
|
setuptools # required for finding pkg_resources at runtime
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
# Python packages
|
|
|
|
pytestCheckHook
|
|
|
|
docutils
|
|
|
|
fixtures
|
|
|
|
sphinx
|
|
|
|
testtools
|
|
|
|
testscenarios
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Release Notes Manager";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://docs.openstack.org/reno/latest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger guillaumekoenig ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|