Merge pull request #165911 from samuela/samuela/invocations

This commit is contained in:
Sandro 2022-03-28 13:23:25 +02:00 committed by GitHub
commit 2c909d208d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ buildPythonPackage
, blessings
, fetchFromGitHub
, invoke
, lib
, releases
, semantic-version
, tabulate
, twine
}:
buildPythonPackage rec {
pname = "invocations";
version = "2.6.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "pyinvoke";
repo = pname;
rev = version;
hash = "sha256-eyOJKVRfn7elyEkERl7hvRTNFmq7O9Pr03lBS6xp0wE=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "semantic_version>=2.4,<2.7" "semantic_version" \
--replace "tabulate==0.7.5" "tabulate"
'';
propagatedBuildInputs = [ blessings invoke releases semantic-version tabulate twine ];
# There's an error loading the test suite. See https://github.com/pyinvoke/invocations/issues/29.
doCheck = false;
pythonImportsCheck = [ "invocations" ];
meta = with lib; {
description = "Common/best-practice Invoke tasks and collections";
homepage = "https://invocations.readthedocs.io/";
license = licenses.bsd2;
maintainers = with maintainers; [ samuela ];
};
}

View file

@ -0,0 +1,37 @@
{ 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 ];
};
}

View file

@ -4092,6 +4092,8 @@ in {
intreehooks = callPackage ../development/python-modules/intreehooks { }; intreehooks = callPackage ../development/python-modules/intreehooks { };
invocations = callPackage ../development/python-modules/invocations { };
invoke = callPackage ../development/python-modules/invoke { }; invoke = callPackage ../development/python-modules/invoke { };
iodata = callPackage ../development/python-modules/iodata { }; iodata = callPackage ../development/python-modules/iodata { };
@ -8708,6 +8710,8 @@ in {
relatorio = callPackage ../development/python-modules/relatorio { }; relatorio = callPackage ../development/python-modules/relatorio { };
releases = callPackage ../development/python-modules/releases { };
remarshal = callPackage ../development/python-modules/remarshal { }; remarshal = callPackage ../development/python-modules/remarshal { };
renault-api = callPackage ../development/python-modules/renault-api { }; renault-api = callPackage ../development/python-modules/renault-api { };