diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-04-05 22:13:24 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-08 11:36:05 +0200 |
commit | 762378a5d7da9281610e9f079f7efb880c5157a0 (patch) | |
tree | 0d458ba73da38a85a3cf77aac27dbc1698ff21de /pkgs/development/python-modules/uritemplate | |
parent | f01bd848fccd235a535aa80c271adcb10861d7fa (diff) | |
download | nixpkgs-762378a5d7da9281610e9f079f7efb880c5157a0.tar nixpkgs-762378a5d7da9281610e9f079f7efb880c5157a0.tar.gz nixpkgs-762378a5d7da9281610e9f079f7efb880c5157a0.tar.bz2 nixpkgs-762378a5d7da9281610e9f079f7efb880c5157a0.tar.lz nixpkgs-762378a5d7da9281610e9f079f7efb880c5157a0.tar.xz nixpkgs-762378a5d7da9281610e9f079f7efb880c5157a0.tar.zst nixpkgs-762378a5d7da9281610e9f079f7efb880c5157a0.zip |
python.pkgs.uritemplate: update expression
* run tests * update meta info
Diffstat (limited to 'pkgs/development/python-modules/uritemplate')
-rw-r--r-- | pkgs/development/python-modules/uritemplate/default.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/uritemplate/default.nix b/pkgs/development/python-modules/uritemplate/default.nix index 531d34f9a8d..c469fd8dd1c 100644 --- a/pkgs/development/python-modules/uritemplate/default.nix +++ b/pkgs/development/python-modules/uritemplate/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, simplejson }: +{ lib, buildPythonPackage, fetchPypi, simplejson, pytest, glibcLocales }: buildPythonPackage rec { pname = "uritemplate"; @@ -9,15 +9,18 @@ buildPythonPackage rec { sha256 = "c02643cebe23fc8adb5e6becffe201185bf06c40bda5c0b4028a93f1527d011d"; }; - # No tests in archive - doCheck = false; - propagatedBuildInputs = [ simplejson ]; + checkInputs = [ pytest glibcLocales ]; + + checkPhase = '' + LC_ALL=en_US.UTF-8 py.test + ''; + meta = with lib; { - homepage = https://github.com/uri-templates/uritemplate-py; - description = "Python implementation of URI Template"; - license = licenses.asl20; + homepage = https://github.com/python-hyper/uritemplate; + description = "URI template parsing for Humans"; + license = with licenses; [ asl20 bsd3 ]; maintainers = with maintainers; [ matthiasbeyer ]; }; } |