git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.uri-template: init at 1.2.0
commitea39bd5ffbcc052f19ac837c71bef65e14677767 authorDzmitry Malyshau <kvark@fastmail.com> dateThu 7 Apr 2022, 14:55 (5 years ago) parentbe52550
2 files changed+32
pkgs/development/python-modules/uri-template/default.nix+30 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/uri-template/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, python }:
2+
3+buildPythonPackage rec {
4+ pname = "uri-template";
5+ version = "1.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "plinss";
9+ repo = "uri_template";
10+ rev = "v${version}";
11+ sha256 = "sha256-IAq6GpEwimq45FU0QugLZLSOhwAmC1KbpZKD0zyxsUs=";
12+ };
13+
14+ postPatch = ''
15+ sed -i -e 's/0.0.0/${version}/' setup.py
16+ '';
17+
18+ checkPhase = ''
19+ ${python.interpreter} test.py
20+ '';
21+
22+ pythonImportsCheck = [ "uri_template" ];
23+
24+ meta = with lib; {
25+ description = "An implementation of RFC 6570 URI Templates";
26+ homepage = "https://github.com/plinss/uri_template/";
27+ license = licenses.mit;
28+ maintainers = [ maintainers.kvark ];
29+ };
30+}
pkgs/top-level/python-packages.nix+2
@@ -10459,6 +10459,8 @@ in {
1045910459
1046010460 uritemplate = callPackage ../development/python-modules/uritemplate { };
1046110461
10462+ uri-template = callPackage ../development/python-modules/uri-template { };
10463+
1046210464 uritools = callPackage ../development/python-modules/uritools { };
1046310465
1046410466 url-normalize = callPackage ../development/python-modules/url-normalize { };