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