nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, georss-client 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "georss-tfs-incidents-client"; 11 version = "0.4"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "exxamalte"; 18 repo = "python-georss-tfs-incidents-client"; 19 rev = "v${version}"; 20 hash = "sha256-Cz0PRcGReAE0mg04ktCUaoLqPTjvyU1TiB/Pdz7o7zo="; 21 }; 22 23 propagatedBuildInputs = [ 24 georss-client 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "georss_tfs_incidents_client" 33 ]; 34 35 meta = with lib; { 36 description = "Python library for accessing Tasmania Fire Service Incidents feed"; 37 homepage = "https://github.com/exxamalte/python-georss-tfs-incidents-client"; 38 license = with licenses; [ asl20 ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}