1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, requests 6, xmltodict 7}: 8 9buildPythonPackage rec { 10 pname = "pysecuritas"; 11 version = "0.1.6"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "W3DLZCXUH9y5NPipFEu6URmKN+oVXMgeDF1rfKtxRng="; 19 }; 20 21 propagatedBuildInputs = [ 22 xmltodict 23 requests 24 ]; 25 26 # Project doesn't ship tests with PyPI releases 27 # https://github.com/Cebeerre/pysecuritas/issues/13 28 doCheck = false; 29 30 pythonImportsCheck = [ 31 "pysecuritas" 32 ]; 33 34 meta = with lib; { 35 description = "Python client to access Securitas Direct Mobile API"; 36 homepage = "https://github.com/Cebeerre/pysecuritas"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}