1{ lib 2, buildPythonPackage 3, fetchPypi 4, simplejson 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "uritemplate"; 11 version = "4.1.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-Q0bt/Fw7efaUvM1tYJmjIrvrYo2/LNhu6lWkVs5RJPA="; 19 }; 20 21 propagatedBuildInputs = [ 22 simplejson 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ 30 "uritemplate" 31 ]; 32 33 meta = with lib; { 34 description = "Implementation of RFC 6570 URI templates"; 35 homepage = "https://github.com/python-hyper/uritemplate"; 36 license = with licenses; [ asl20 bsd3 ]; 37 maintainers = with maintainers; [ matthiasbeyer ]; 38 }; 39}