Merge pull request #199382 from r-ryantm/auto-update/python310Packages.fastrlock

python310Packages.fastrlock: 0.8 -> 0.8.1
This commit is contained in:
Fabian Affolter 2022-11-03 22:57:33 +01:00 committed by GitHub
commit 8eb4b48384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,43 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "fastrlock";
version = "0.8";
version = "0.8.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "9cc100ed0924b32173d7de705a82fdf1257cdf60af1952a13f64759307b40931";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "scoder";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-KYJd1wGJo+z34cY0YfsRbpC9IsQY/VJqycGpMmLmaVk=";
};
nativeBuildInputs = [
cython
];
# Todo: Check why the tests have an import error
doCheck = false;
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"fastrlock"
];
meta = with lib; {
description = "RLock implementation for CPython";
homepage = "https://github.com/scoder/fastrlock";
description = "A fast RLock implementation for CPython";
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};