9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
42 lines
922 B
Nix
42 lines
922 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
|
|
# propagates
|
|
, typing-extensions
|
|
|
|
# tests
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyReaderWriterLock";
|
|
version = "1.0.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elarivie";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-8FC+4aDgGpF1BmOdlkFtMy7OfWdSmvn9fjKXSmmeJlg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "readerwriterlock" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/elarivie/pyReaderWriterLock/blob/master/CHANGELOG.md";
|
|
description = "Implementation of the Readers-writers problem";
|
|
homepage = "https://github.com/elarivie/pyReaderWriterLock";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ MayNiklas ];
|
|
};
|
|
}
|