Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / coreapi / default.nix
blob3e8a540904021042025328793bfa8adfa6ce65c1
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";
17   src = fetchFromGitHub {
18     repo = "python-client";
19     owner = "core-api";
20     rev = version;
21     sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw";
22   };
24   propagatedBuildInputs = [
25     django
26     coreschema
27     itypes
28     uritemplate
29     requests
30   ];
32   nativeCheckInputs = [ pytest ];
33   checkPhase = ''
34     cd ./tests
35     pytest
36   '';
38   meta = with lib; {
39     description = "Python client library for Core API";
40     homepage = "https://github.com/core-api/python-client";
41     license = licenses.bsd3;
42     maintainers = with maintainers; [ ];
43   };