567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
40 lines
798 B
Nix
40 lines
798 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastrlock";
|
|
version = "0.8.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scoder";
|
|
repo = "fastrlock";
|
|
tag = "v${version}";
|
|
hash = "sha256-NB/AR6g1ZP5Atc0zwZNuXLsxg8BM67rWnx3Q6Pb0k5k=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
# Todo: Check why the tests have an import error
|
|
doCheck = false;
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "fastrlock" ];
|
|
|
|
meta = {
|
|
description = "RLock implementation for CPython";
|
|
homepage = "https://github.com/scoder/fastrlock";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ hyphon81 ];
|
|
};
|
|
}
|