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