1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6}:
7
8buildPythonPackage rec {
9 pname = "itemdb";
10 version = "1.3.0";
11 format = "pyproject";
12
13 nativeBuildInputs = [
14 flit-core
15 ];
16
17 # PyPI tarball doesn't include tests directory
18 src = fetchFromGitHub {
19 owner = "almarklein";
20 repo = "itemdb";
21 tag = "v${version}";
22 sha256 = "sha256-HXdOERq2td6CME8zWN0DRVkSlmdqTg2po7aJrOuITHE=";
23 };
24
25 meta = with lib; {
26 description = "Easy transactional database for Python dicts, backed by SQLite";
27 license = licenses.bsd2;
28 homepage = "https://itemdb.readthedocs.io";
29 maintainers = [ maintainers.matthiasbeyer ];
30 };
31}