3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.uri-template: init at 1.2.0

This commit is contained in:
Dzmitry Malyshau 2022-04-07 14:55:54 +02:00 committed by Silvan Mosberger
parent be52550380
commit ea39bd5ffb
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchFromGitHub, python }:
buildPythonPackage rec {
pname = "uri-template";
version = "1.2.0";
src = fetchFromGitHub {
owner = "plinss";
repo = "uri_template";
rev = "v${version}";
sha256 = "sha256-IAq6GpEwimq45FU0QugLZLSOhwAmC1KbpZKD0zyxsUs=";
};
postPatch = ''
sed -i -e 's/0.0.0/${version}/' setup.py
'';
checkPhase = ''
${python.interpreter} test.py
'';
pythonImportsCheck = [ "uri_template" ];
meta = with lib; {
description = "An implementation of RFC 6570 URI Templates";
homepage = "https://github.com/plinss/uri_template/";
license = licenses.mit;
maintainers = [ maintainers.kvark ];
};
}

View file

@ -10459,6 +10459,8 @@ in {
uritemplate = callPackage ../development/python-modules/uritemplate { };
uri-template = callPackage ../development/python-modules/uri-template { };
uritools = callPackage ../development/python-modules/uritools { };
url-normalize = callPackage ../development/python-modules/url-normalize { };