mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +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
73 lines
1.4 KiB
Nix
73 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
|
|
# optional dependencies
|
|
azure-storage-blob,
|
|
boto3,
|
|
dulwich,
|
|
google-cloud-storage,
|
|
pymongo,
|
|
redis,
|
|
|
|
# testing
|
|
mock,
|
|
pytestCheckHook,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simplekv";
|
|
version = "0.14.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mbr";
|
|
repo = "simplekv";
|
|
tag = version;
|
|
hash = "sha256-seUGDj2q84+AjDFM1pxMLlHbe9uBgEhmqA96UHjnCmo=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
six
|
|
]
|
|
++ optional-dependencies.git;
|
|
|
|
pythonImportsCheck = [ "simplekv" ];
|
|
|
|
disabledTests = [
|
|
# Issue with fixture
|
|
"test_concurrent_mkdir"
|
|
];
|
|
|
|
optional-dependencies = {
|
|
amazon = [ boto3 ];
|
|
azure = [ azure-storage-blob ];
|
|
google = [ google-cloud-storage ];
|
|
redis = [ redis ];
|
|
mongodb = [ pymongo ];
|
|
git = [ dulwich ];
|
|
/*
|
|
Additional potential dependencies not exposed here:
|
|
sqlalchemy: Our version is too new for simplekv
|
|
appengine-python-standard: Not packaged in nixpkgs
|
|
*/
|
|
};
|
|
|
|
meta = {
|
|
description = "Simple key-value store for binary data";
|
|
homepage = "https://github.com/mbr/simplekv";
|
|
changelog = "https://github.com/mbr/simplekv/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
fab
|
|
bbenne10
|
|
];
|
|
};
|
|
}
|