reno: 2.3.2 -> 3.1.0
Fix execution, and upgrade to latest version.
This commit is contained in:
parent
b8e21e1d75
commit
ccb6b07c89
@ -1,27 +1,58 @@
|
|||||||
{ stdenv, fetchurl, pythonPackages }:
|
{ stdenv
|
||||||
|
, git
|
||||||
|
, gnupg1
|
||||||
|
, python3Packages
|
||||||
|
}:
|
||||||
|
|
||||||
with pythonPackages; buildPythonApplication rec {
|
with python3Packages; buildPythonApplication rec {
|
||||||
pname = "reno";
|
pname = "reno";
|
||||||
version = "2.3.2";
|
version = "3.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
# Must be built from python sdist because of versioning quirks
|
||||||
url = "mirror://pypi/r/reno/${pname}-${version}.tar.gz";
|
src = fetchPypi {
|
||||||
sha256 = "018vl9fj706jjf07xdx8q6761s53mrihjn69yjq09gp0vmp1g7i4";
|
inherit pname version;
|
||||||
|
sha256 = "2510e3aae4874674187f88f22f854e6b0ea1881b77039808a68ac1a5e8ee69b6";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Don't know how to make tests pass
|
propagatedBuildInputs = [
|
||||||
doCheck = false;
|
dulwich
|
||||||
|
pbr
|
||||||
|
pyyaml
|
||||||
|
setuptools # required for finding pkg_resources at runtime
|
||||||
|
];
|
||||||
|
|
||||||
# Nothing to strip (python files)
|
checkInputs = [
|
||||||
dontStrip = true;
|
# Python packages
|
||||||
|
pytestCheckHook
|
||||||
|
docutils
|
||||||
|
fixtures
|
||||||
|
sphinx
|
||||||
|
testtools
|
||||||
|
testscenarios
|
||||||
|
|
||||||
propagatedBuildInputs = [ pbr six pyyaml dulwich ];
|
# Required programs to run all tests
|
||||||
buildInputs = [ Babel ];
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Release Notes Manager";
|
description = "Release Notes Manager";
|
||||||
homepage = "http://docs.openstack.org/developer/reno/";
|
homepage = "https://docs.openstack.org/reno/latest";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ guillaumekoenig ];
|
maintainers = with maintainers; [ drewrisinger guillaumekoenig ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user