Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 45 lines 852 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, python 5, pythonOlder 6, setuptools 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "uri-template"; 12 version = "1.3.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "plinss"; 19 repo = "uri_template"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-38HFFqM6yfpsPrhIpE639ePy/NbLqKw7gbnE3y8sL3w="; 22 }; 23 24 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 checkPhase = '' 32 ${python.interpreter} test.py 33 ''; 34 35 pythonImportsCheck = [ 36 "uri_template" 37 ]; 38 39 meta = with lib; { 40 description = "An implementation of RFC 6570 URI Templates"; 41 homepage = "https://github.com/plinss/uri_template/"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ ]; 44 }; 45}