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