depot/third_party/nixpkgs/pkgs/development/python-modules/releases/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
884 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
semantic-version,
sphinx,
}:
buildPythonPackage rec {
pname = "releases";
version = "2.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "bitprophet";
repo = pname;
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 = with lib; {
description = "A Sphinx extension for changelog manipulation";
homepage = "https://github.com/bitprophet/releases";
license = licenses.bsd2;
maintainers = with maintainers; [ samuela ];
};
}