summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/apswutils/default.nix
blob: 035a74132ab51f0b6536edddfcb490b4d171cb5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  apsw,
  fastcore,

  # tests
  pytestCheckHook,
  hypothesis,
}:

buildPythonPackage (finalAttrs: {
  pname = "apswutils";
  version = "0.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "AnswerDotAI";
    repo = "apswutils";
    tag = finalAttrs.version;
    hash = "sha256-lqtgjQ4nhmcf52mFeXdFxvd8WNsDDR9PEeWAncBX46g=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    apsw
    fastcore
  ];

  nativeCheckInputs = [
    pytestCheckHook
    hypothesis
  ];

  pythonImportsCheck = [
    "apswutils"
  ];

  meta = {
    description = "A fork of sqlite-minutils for apsw";
    homepage = "https://github.com/AnswerDotAI/apswutils";
    changelog = "https://github.com/AnswerDotAI/apswutils/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
})