nixpkgs/pkgs/development/python-modules/minidb/default.nix

38 lines
679 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "minidb";
version = "2.0.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "thp";
repo = "minidb";
rev = "refs/tags/${version}";
hash = "sha256-0f2usKoHs4NO/Ir8MhyiAVZFYnUkVH5avdh3QdHzY6s=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"minidb"
];
meta = with lib; {
description = "SQLite3-based store for Python objects";
homepage = "https://thp.io/2010/minidb/";
license = licenses.isc;
maintainers = with maintainers; [ tv ];
};
}