nixpkgs/pkgs/development/python-modules/schiene/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

40 lines
713 B
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "schiene";
version = "0.26";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-sCaVrHqQZwAZDXIjh4Rg9ZT/EQSbrOPdSyT8oofCsmA=";
};
propagatedBuildInputs = [
requests
beautifulsoup4
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"schiene"
];
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 ];
};
}