e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, lxml
|
|
, pyjwt
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "seatconnect";
|
|
version = "1.1.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "farfar";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-HITVrI0o94a61gy/TYSGFtLBYX4Rw/dK1o2/KsvHLTQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
beautifulsoup4
|
|
cryptography
|
|
lxml
|
|
pyjwt
|
|
xmltodict
|
|
];
|
|
|
|
# Project only has a dummy test
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"seatconnect"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to communicate with Seat Connect";
|
|
homepage = "https://github.com/farfar/seatconnect";
|
|
changelog = "https://github.com/Farfar/seatconnect/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|