summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/releases/default.nix
blob: 850c07957e709757765c5963f6e60d5b34ba4fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  semantic-version,
  sphinx,
}:

buildPythonPackage rec {
  pname = "releases";
  version = "2.1.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "bitprophet";
    repo = "releases";
    rev = version;
    hash = "sha256-IgEKAUk97R3ZvqvexD/ptT8i0uf48K+DKkk4q3pn3G8=";
  };

  postPatch = ''
    substituteInPlace setup.py --replace "semantic_version<2.7" "semantic_version"
  '';

  propagatedBuildInputs = [
    semantic-version
    sphinx
  ];

  # Test suite doesn't run. See https://github.com/bitprophet/releases/issues/95.
  doCheck = false;

  pythonImportsCheck = [ "releases" ];

  meta = {
    description = "Sphinx extension for changelog manipulation";
    homepage = "https://github.com/bitprophet/releases";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ samuela ];
  };
}