git.iko.soy/typeable/nixpkgs
on master help sign in
reno: 2.3.2 -> 3.1.0

Fix execution, and upgrade to latest version.

commitccb6b07c891b4840459acee6d1f0c5d86cb7b8a7 authorDrew Risinger <drewrisinger@users.noreply.github.com> dateMon 10 Aug 2020, 17:58 (6 years ago) parentb8e21e1
1 file changed+46−15
pkgs/development/tools/reno/default.nix+46−15
pkgs/development/tools/reno/default.nix+46−15
@@ -1,27 +1,58 @@
1−{ stdenv, fetchurl, pythonPackages }:
1+{ stdenv
2+, git
3+, gnupg1
4+, python3Packages
5+}:
26
3−with pythonPackages; buildPythonApplication rec {
7+with python3Packages; buildPythonApplication rec {
48 pname = "reno";
5− version = "2.3.2";
9+ version = "3.1.0";
610
7− src = fetchurl {
8− url = "mirror://pypi/r/reno/${pname}-${version}.tar.gz";
9− sha256 = "018vl9fj706jjf07xdx8q6761s53mrihjn69yjq09gp0vmp1g7i4";
11+ # Must be built from python sdist because of versioning quirks
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "2510e3aae4874674187f88f22f854e6b0ea1881b77039808a68ac1a5e8ee69b6";
1015 };
1116
12− # Don't know how to make tests pass
13− doCheck = false;
17+ propagatedBuildInputs = [
18+ dulwich
19+ pbr
20+ pyyaml
21+ setuptools # required for finding pkg_resources at runtime
22+ ];
1423
15− # Nothing to strip (python files)
16− dontStrip = true;
24+ checkInputs = [
25+ # Python packages
26+ pytestCheckHook
27+ docutils
28+ fixtures
29+ sphinx
30+ testtools
31+ testscenarios
1732
18− propagatedBuildInputs = [ pbr six pyyaml dulwich ];
19− buildInputs = [ Babel ];
33+ # Required programs to run all tests
34+ git
35+ gnupg1
36+ ];
37+
38+ # remove b/c doesn't list all dependencies, and requires a few packages not in nixpkgs
39+ postPatch = ''
40+ rm test-requirements.txt
41+ '';
42+
43+ disabledTests = [
44+ "test_build_cache_db" # expects to be run from a git repository
45+ ];
46+
47+ # verify executable
48+ postCheck = ''
49+ $out/bin/reno -h
50+ '';
2051
2152 meta = with stdenv.lib; {
2253 description = "Release Notes Manager";
23− homepage = "http://docs.openstack.org/developer/reno/";
24− license = licenses.asl20;
25− maintainers = with maintainers; [ guillaumekoenig ];
54+ homepage = "https://docs.openstack.org/reno/latest";
55+ license = licenses.asl20;
56+ maintainers = with maintainers; [ drewrisinger guillaumekoenig ];
2657 };
2758}