1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4, semantic-version
5, sphinx
6}:
7
8buildPythonPackage rec {
9 pname = "releases";
10 version = "1.6.3";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "bitprophet";
15 repo = pname;
16 rev = version;
17 hash = "sha256-XX2e6bjBNMun31h0sNJ9ieZE01U+PhA5JYYNOuMgD20=";
18 };
19
20 postPatch = ''
21 substituteInPlace setup.py --replace "semantic_version<2.7" "semantic_version"
22 '';
23
24 propagatedBuildInputs = [ semantic-version sphinx ];
25
26 # Test suite doesn't run. See https://github.com/bitprophet/releases/issues/95.
27 doCheck = false;
28
29 pythonImportsCheck = [ "releases" ];
30
31 meta = with lib; {
32 description = "A Sphinx extension for changelog manipulation";
33 homepage = "https://github.com/bitprophet/releases";
34 license = licenses.bsd2;
35 maintainers = with maintainers; [ samuela ];
36 };
37}