My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/releases/default.nix

37 lines
867 B

{ buildPythonPackage
, fetchFromGitHub
, lib
, semantic-version
, sphinx
}:
buildPythonPackage rec {
pname = "releases";
version = "1.6.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "bitprophet";
repo = pname;
rev = version;
hash = "sha256-XX2e6bjBNMun31h0sNJ9ieZE01U+PhA5JYYNOuMgD20=";
};
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 ];
};
}