depot/third_party/nixpkgs/pkgs/development/python-modules/pyreaderwriterlock/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

46 lines
989 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
# build-system
setuptools,
# dependencies
typing-extensions,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyreaderwriterlock";
version = "1.0.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "elarivie";
repo = "pyReaderWriterLock";
rev = "refs/tags/v${version}";
hash = "sha256-8FC+4aDgGpF1BmOdlkFtMy7OfWdSmvn9fjKXSmmeJlg=";
};
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [ pytestCheckHook ];
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 ];
};
}