1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 pythonOlder, 7 setuptools, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "uri-template"; 13 version = "1.3.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "plinss"; 20 repo = "uri_template"; 21 tag = "v${version}"; 22 hash = "sha256-38HFFqM6yfpsPrhIpE639ePy/NbLqKw7gbnE3y8sL3w="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 checkPhase = '' 31 ${python.interpreter} test.py 32 ''; 33 34 pythonImportsCheck = [ "uri_template" ]; 35 36 meta = with lib; { 37 description = "Implementation of RFC 6570 URI Templates"; 38 homepage = "https://github.com/plinss/uri_template/"; 39 license = licenses.mit; 40 maintainers = [ ]; 41 }; 42}