python311Packages.sqlitedict: refactor
This commit is contained in:
parent
817c314ea6
commit
243eeb6871
@ -4,12 +4,16 @@
|
||||
, py
|
||||
, pytest-benchmark
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sqlitedict";
|
||||
version = "2.1.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RaRe-Technologies";
|
||||
@ -18,9 +22,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-GfvvkQ6a75UBPn70IFOvjvL1MedSc4siiIjA3IsQnic=";
|
||||
};
|
||||
|
||||
preCheck = ''
|
||||
mkdir tests/db
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
py
|
||||
@ -28,6 +32,14 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
mkdir tests/db
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sqlitedict"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--benchmark-disable"
|
||||
];
|
||||
@ -35,7 +47,8 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Persistent, thread-safe dict";
|
||||
homepage = "https://github.com/RaRe-Technologies/sqlitedict";
|
||||
changelog = "https://github.com/piskvorky/sqlitedict/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.arnoldfarkas ];
|
||||
maintainers = with maintainers; [ arnoldfarkas ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user