2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
2022-01-27 00:19:43 +00:00
|
|
|
, beautifulsoup4
|
2021-01-05 17:05:55 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-01-27 00:19:43 +00:00
|
|
|
, pythonOlder
|
2021-01-05 17:05:55 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "schiene";
|
2022-01-27 00:19:43 +00:00
|
|
|
version = "0.24";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-27 00:19:43 +00:00
|
|
|
sha256 = "sha256-y1gbeavZNFniRiOBbJ4Mgmb0F01HedSmpAWaeZEv0Go=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
# Module has no tests
|
2021-01-05 17:05:55 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"schiene"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interacting with Bahn.de";
|
|
|
|
homepage = "https://github.com/kennell/schiene";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|