python312Packages.strenum: patch vendorized versioneer
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "strenum";
|
||||
version = "0.4.15";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@@ -19,6 +21,15 @@ buildPythonPackage rec {
|
||||
hash = "sha256-LrDLIWiV/zIbl7CwKh7DAy4LoLyY7+hfUu8nqduclnA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Replace SafeConfigParser and readfp, https://github.com/milanmeu/aioaseko/pull/6
|
||||
(fetchpatch {
|
||||
name = "replace-safeconfigparser.patch";
|
||||
url = "https://github.com/irgeek/StrEnum/commit/896bef1b7e4a50c8b53d90c8d2fb5c0164f08ecd.patch";
|
||||
hash = "sha256-dmmEzhy17huclo1wOubpBUDc2L7vqEU5b/6a5loM47A=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"pytest-runner"' ""
|
||||
@@ -26,6 +37,10 @@ buildPythonPackage rec {
|
||||
--replace " --cov=strenum --cov-report term-missing --black --pylint" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
@@ -35,7 +50,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MOdule for enum that inherits from str";
|
||||
description = "Module for enum that inherits from str";
|
||||
homepage = "https://github.com/irgeek/StrEnum";
|
||||
changelog = "https://github.com/irgeek/StrEnum/releases/tag/v${version}";
|
||||
license = with licenses; [ mit ];
|
||||
|
||||
Reference in New Issue
Block a user