1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 7 pythonOlder, 8 nix-update-script, 9}: 10 11buildPythonPackage rec { 12 pname = "python-nomad"; 13 version = "2.1.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "jrxfive"; 20 repo = "python-nomad"; 21 tag = version; 22 hash = "sha256-tLS463sYVlOr2iZSgSkd4pHUVCtiIPJ3L8+9omlX4NY="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ requests ]; 28 29 # Tests require nomad agent 30 doCheck = false; 31 32 pythonImportsCheck = [ "nomad" ]; 33 34 passthru.updateScript = nix-update-script { }; 35 36 meta = { 37 description = "Python client library for Hashicorp Nomad"; 38 homepage = "https://github.com/jrxFive/python-nomad"; 39 changelog = "https://github.com/jrxFive/python-nomad/blob/${version}/CHANGELOG.md"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ xbreak ]; 42 }; 43}