1{ lib, buildPythonPackage, fetchPypi, simplejson, pytest, glibcLocales }:
2
3buildPythonPackage rec {
4 pname = "uritemplate";
5 version = "3.0.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "c02643cebe23fc8adb5e6becffe201185bf06c40bda5c0b4028a93f1527d011d";
10 };
11
12 propagatedBuildInputs = [ simplejson ];
13
14 checkInputs = [ pytest glibcLocales ];
15
16 checkPhase = ''
17 LC_ALL=en_US.UTF-8 py.test
18 '';
19
20 meta = with lib; {
21 homepage = https://github.com/python-hyper/uritemplate;
22 description = "URI template parsing for Humans";
23 license = with licenses; [ asl20 bsd3 ];
24 maintainers = with maintainers; [ matthiasbeyer ];
25 };
26}