Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / enturclient / default.nix
blob7140ded8bc4a8dedbb2afb5031464baa3b7665a7
1 { lib
2 , aiohttp
3 , async-timeout
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "enturclient";
12   version = "0.2.4";
13   disabled = pythonOlder "3.8";
15   format = "pyproject";
17   src = fetchFromGitHub {
18     owner = "hfurubotten";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-Y2sBPikCAxumylP1LUy8XgjBRCWaNryn5XHSrRjJIIo=";
22   };
24   nativeBuildInputs = [
25     poetry-core
26   ];
28   propagatedBuildInputs = [
29     aiohttp
30     async-timeout
31   ];
33   postPatch = ''
34     substituteInPlace pyproject.toml \
35       --replace 'async_timeout = "^3.0.1"' 'async_timeout = ">=3.0.1"'
36   '';
38   # Project has no tests
39   doCheck = false;
41   pythonImportsCheck = [
42     "enturclient"
43   ];
45   meta = with lib; {
46     description = "Python library for interacting with the Entur.org API";
47     homepage = "https://github.com/hfurubotten/enturclient";
48     license = with licenses; [ mit ];
49     maintainers = with maintainers; [ fab ];
50   };