Merge pull request #240861 from tjni/jaraco_collections

python310Packages.jaraco_collections: 3.8.0 -> 4.3.0
This commit is contained in:
Fabian Affolter 2023-07-01 20:32:57 +02:00 committed by GitHub
commit 76d324a946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View File

@ -3,6 +3,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, setuptools
, setuptools-scm
, jaraco_text
@ -26,6 +27,19 @@ buildPythonPackage rec {
hash = "sha256-MR/SX5jmZvEMULgvQbh0JBZjIosNCPWl1wvEoJbdw4Y=";
};
patches = [
(fetchpatch {
name = "dos2unix-line-endings.patch";
url = "https://github.com/jaraco/jaraco.email/commit/ab9643598e26cca9c9cdbd34b00c972f547b9236.patch";
hash = "sha256-Z2WOnR+ELzQciVyUiUq4jaP+Vnc4aseLP7+LWJZoOU8=";
})
(fetchpatch {
name = "jaraco-collections-4-compatibility.patch";
url = "https://github.com/jaraco/jaraco.email/commit/e65e5fed0178ddcd009d16883b381c5582f1a9df.patch";
hash = "sha256-mKxa0ZU1JFeQPemrjQl94buLNY5gXnMCCRKBxdO870M=";
})
];
nativeBuildInputs = [
setuptools
setuptools-scm

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm
, jaraco_classes
, jaraco_text
@ -8,12 +9,12 @@
buildPythonPackage rec {
pname = "jaraco.collections";
version = "3.8.0";
version = "4.3.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-VjBP1L1OuNWFzgys4KyAQYeRsUCFHjdIElQbCqJ8kdA=";
hash = "sha256-dP/CP8z+5N4KLr9VajNnW2o8AD1jNZR9MSKgvIgiyOQ=";
};
postPatch = ''
@ -22,9 +23,12 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
propagatedBuildInputs = [
jaraco_classes
jaraco_text
@ -39,6 +43,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Models and classes to supplement the stdlib 'collections' module";
homepage = "https://github.com/jaraco/jaraco.collections";
changelog = "https://github.com/jaraco/jaraco.collections/blob/v${version}/NEWS.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
};