Merge pull request #127539 from fabaff/enturclient

This commit is contained in:
Sandro 2021-06-20 18:18:47 +02:00 committed by GitHub
commit 94a1806bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,37 @@
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "enturclient";
version = "0.2.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hfurubotten";
repo = pname;
rev = "v${version}";
sha256 = "158xzv9c2drjgrdhfqm0xzx2d34v45gr5rnjfsi94scffvprgwrg";
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "enturclient" ];
meta = with lib; {
description = "Python library for interacting with the Entur.org API";
homepage = "https://github.com/hfurubotten/enturclient";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -227,7 +227,7 @@
"enigma2" = ps: with ps; [ openwebifpy ];
"enocean" = ps: with ps; [ enocean ];
"enphase_envoy" = ps: with ps; [ envoy-reader ];
"entur_public_transport" = ps: with ps; [ ]; # missing inputs: enturclient
"entur_public_transport" = ps: with ps; [ enturclient ];
"environment_canada" = ps: with ps; [ ]; # missing inputs: env_canada
"envirophat" = ps: with ps; [ smbus-cffi ]; # missing inputs: envirophat
"envisalink" = ps: with ps; [ pyenvisalink ];

View File

@ -2287,6 +2287,8 @@ in {
entrypoints = callPackage ../development/python-modules/entrypoints { };
enturclient = callPackage ../development/python-modules/enturclient { };
enum34 = callPackage ../development/python-modules/enum34 { };
enum-compat = callPackage ../development/python-modules/enum-compat { };