mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-13 21:56:29 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
43 lines
929 B
Nix
43 lines
929 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
typing-extensions,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyreaderwriterlock";
|
|
version = "1.0.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elarivie";
|
|
repo = "pyReaderWriterLock";
|
|
tag = "v${version}";
|
|
hash = "sha256-8FC+4aDgGpF1BmOdlkFtMy7OfWdSmvn9fjKXSmmeJlg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "readerwriterlock" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/elarivie/pyReaderWriterLock/blob/master/CHANGELOG.md";
|
|
description = "Implementation of the Readers-writers problem";
|
|
homepage = "https://github.com/elarivie/pyReaderWriterLock";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ MayNiklas ];
|
|
};
|
|
}
|