Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / coreapi / default.nix
blobad172b2961167a55cda89b33e11165f814a80973
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   django,
6   coreschema,
7   itypes,
8   uritemplate,
9   requests,
10   pytest,
13 buildPythonPackage rec {
14   pname = "coreapi";
15   version = "2.3.3";
16   format = "setuptools";
18   src = fetchFromGitHub {
19     repo = "python-client";
20     owner = "core-api";
21     rev = version;
22     sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw";
23   };
25   propagatedBuildInputs = [
26     django
27     coreschema
28     itypes
29     uritemplate
30     requests
31   ];
33   nativeCheckInputs = [ pytest ];
34   checkPhase = ''
35     cd ./tests
36     pytest
37   '';
39   meta = with lib; {
40     description = "Python client library for Core API";
41     homepage = "https://github.com/core-api/python-client";
42     license = licenses.bsd3;
43     maintainers = with maintainers; [ ];
44   };