summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/coreapi/default.nix
blob: 7c810a0fb0c5b305c29ae9c29eca1d4081b7f3e7 (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
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  setuptools,
  django,
  coreschema,
  itypes,
  uritemplate,
  requests,
  standard-cgi,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "coreapi";
  version = "2.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    repo = "python-client";
    owner = "core-api";
    tag = version;
    hash = "sha256-nNUzQbBaT7woI3fmvPvIM0SVDnt4iC2rQ9bDgUeFzLA=";
  };

  build-system = [ setuptools ];

  dependencies = [
    django
    coreschema
    itypes
    uritemplate
    requests
    standard-cgi
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Python client library for Core API";
    homepage = "https://github.com/core-api/python-client";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}