1{ lib
2, attrs
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, pygtrie
7, orjson
8, python
9, setuptools-scm
10}:
11
12buildPythonPackage rec {
13 pname = "sqltrie";
14 version = "0.5.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "iterative";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-caCzFHQG0fnSmIdesk4k1W/VheY1DWxZb2W8/Xen/ZU=";
24 };
25
26 SETUPTOOLS_SCM_PRETEND_VERSION = version;
27
28 nativeBuildInputs = [
29 setuptools-scm
30 ];
31
32 propagatedBuildInputs = [
33 attrs
34 orjson
35 pygtrie
36 ];
37
38 # nox is not available at the moment
39 doCheck = false;
40
41 pythonImportsCheck = [
42 "sqltrie"
43 ];
44
45 meta = with lib; {
46 description = "DVC's data management subsystem";
47 homepage = "https://github.com/iterative/sqltrie";
48 changelog = "https://github.com/iterative/sqltrie/releases/tag/${version}";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ fab ];
51 };
52}