about summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsonconversion/default.nix
blob: ac068b224edcda40373b5b57e683170f9c1a196c (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pdm-backend,
  numpy,
  setuptools,
}:

buildPythonPackage rec {
  pname = "jsonconversion";
  version = "1.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "DLR-RM";
    repo = "python-jsonconversion";
    rev = "refs/tags/${version}";
    hash = "sha256-XmAQXu9YkkMUvpf/QVk4u1p8UyNfRb0NeoLxC1evCT4=";
  };

  build-system = [
    pdm-backend
  ];

  pythonRemoveDeps = [
    "pytest-runner"
    "pytest"
  ];

  dependencies = [
    numpy
    setuptools
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "jsonconversion" ];

  meta = with lib; {
    description = "This python module helps converting arbitrary Python objects into JSON strings and back";
    homepage = "https://github.com/DLR-RM/python-jsonconversion";
    license = licenses.bsd2;
    maintainers = [ maintainers.terlar ];
  };
}