2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxml
|
|
|
|
, pyjwt
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "seatconnect";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "1.1.6";
|
2021-12-19 01:06:50 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "farfar";
|
|
|
|
repo = pname;
|
2022-02-10 20:34:41 +00:00
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
hash = "sha256-8ZqqNDLygHgtUzTgdb34+4BHuStXJXnl9fBfo0WSNZw=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
beautifulsoup4
|
|
|
|
cryptography
|
|
|
|
lxml
|
|
|
|
pyjwt
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'pytest>=5,<6'," ""
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "pytest-asyncio" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|