depot/third_party/nixpkgs/pkgs/development/python-modules/uri-template/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
803 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "uri-template";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "plinss";
repo = "uri_template";
rev = "refs/tags/v${version}";
hash = "sha256-38HFFqM6yfpsPrhIpE639ePy/NbLqKw7gbnE3y8sL3w=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
checkPhase = ''
${python.interpreter} test.py
'';
pythonImportsCheck = [ "uri_template" ];
meta = with lib; {
description = "Implementation of RFC 6570 URI Templates";
homepage = "https://github.com/plinss/uri_template/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}