mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
51 lines
917 B
Nix
51 lines
917 B
Nix
{ 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 ];
|
|
};
|
|
}
|