python311Packages.timezonefinder: refactor
This commit is contained in:
@@ -14,13 +14,13 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "timezonefinder";
|
||||
version = "6.4.0";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jannikmi";
|
||||
repo = pname;
|
||||
repo = "timezonefinder";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-6hcReAzqTp4Od/PJN/W1uz4VS129yMFqQYznbsC/TRY=";
|
||||
};
|
||||
@@ -42,11 +42,6 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'numpy = "^1.22"' 'numpy = "*"'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"timezonefinder"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user