forked from mirrors/nixpkgs
Merge pull request #127935 from dotlambda/pygti-init
This commit is contained in:
commit
8ceb4e2486
51
pkgs/development/python-modules/pygti/default.nix
Normal file
51
pkgs/development/python-modules/pygti/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, aiohttp
|
||||
, pytz
|
||||
, voluptuous
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygti";
|
||||
version = "0.9.2";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vigonotion";
|
||||
repo = "pygti";
|
||||
rev = "v${version}";
|
||||
sha256 = "0zqa2krsniaqisjr0xqw009wdyy3y48zar9lrwysjsqci7k07d9x";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
pytz
|
||||
voluptuous
|
||||
];
|
||||
|
||||
# no tests implemented
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pygti.auth"
|
||||
"pygti.exceptions"
|
||||
"pygti.gti"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Access public transport information in Hamburg, Germany";
|
||||
homepage = "https://github.com/vigonotion/pygti";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -374,7 +374,7 @@
|
|||
"huisbaasje" = ps: with ps; [ ]; # missing inputs: huisbaasje-client
|
||||
"humidifier" = ps: with ps; [ ];
|
||||
"hunterdouglas_powerview" = ps: with ps; [ ]; # missing inputs: aiopvapi
|
||||
"hvv_departures" = ps: with ps; [ ]; # missing inputs: pygti
|
||||
"hvv_departures" = ps: with ps; [ pygti ];
|
||||
"hydrawise" = ps: with ps; [ hydrawiser ];
|
||||
"hyperion" = ps: with ps; [ hyperion-py ];
|
||||
"ialarm" = ps: with ps; [ pyialarm ];
|
||||
|
|
|
@ -460,6 +460,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"huawei_lte"
|
||||
"hue"
|
||||
"humidifier"
|
||||
"hvv_departures"
|
||||
"hyperion"
|
||||
"ialarm"
|
||||
"iaqualink"
|
||||
|
|
|
@ -5287,6 +5287,8 @@ in {
|
|||
|
||||
pyflick = callPackage ../development/python-modules/pyflick { };
|
||||
|
||||
pygti = callPackage ../development/python-modules/pygti { };
|
||||
|
||||
pyheos = callPackage ../development/python-modules/pyheos { };
|
||||
|
||||
pyhiveapi = callPackage ../development/python-modules/pyhiveapi { };
|
||||
|
|
Loading…
Reference in a new issue