1{ lib, buildPythonPackage, fetchPypi, simplejson, pytest, glibcLocales }:
2
3buildPythonPackage rec {
4 pname = "uritemplate";
5 version = "3.0.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae";
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}