33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
901 B
Nix
41 lines
901 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, georss-client
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "georss-qld-bushfire-alert-client";
|
|
version = "0.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "exxamalte";
|
|
repo = "python-georss-qld-bushfire-alert-client";
|
|
rev = "v${version}";
|
|
hash = "sha256-7KVR0hdLwyCj7MYJoRvQ6wTeJQAmCUarYxJXEFaN8Pc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
georss-client
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"georss_qld_bushfire_alert_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for accessing Queensland Bushfire Alert feed";
|
|
homepage = "https://github.com/exxamalte/python-georss-qld-bushfire-alert-client";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|