summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sdjson/default.nix
blob: 9df8b10dc5c17a89d8d73eefc9fe430e64d13eec (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
{
  buildPythonPackage,
  domdf-python-tools,
  fetchFromGitHub,
  lib,
  typing-extensions,
  whey,
}:

buildPythonPackage rec {
  pname = "sdjson";
  version = "0.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "domdfcoding";
    repo = "singledispatch-json";
    tag = "v${version}";
    hash = "sha256-7qwmPhij2X2GLtjeaoMCoOyT0qzYt9oFccWrQOq6LXw=";
  };

  build-system = [ whey ];

  dependencies = [
    domdf-python-tools
    typing-extensions
  ];

  pythonImportsCheck = [ "sdjson" ];

  # missing dependency coincidence
  doCheck = false;

  meta = {
    description = "Custom JSON Encoder for Python utilising functools.singledispatch";
    homepage = "https://github.com/domdfcoding/singledispatch-json";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}