@@ -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+}