mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
Merge pull request #127539 from fabaff/enturclient
This commit is contained in:
commit
94a1806bc9
37
pkgs/development/python-modules/enturclient/default.nix
Normal file
37
pkgs/development/python-modules/enturclient/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue