aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/argh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/argh/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/argh/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/argh/default.nix b/nixpkgs/pkgs/development/python-modules/argh/default.nix
new file mode 100644
index 00000000000..8c6afb099f9
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/argh/default.nix
@@ -0,0 +1,34 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, pytest
+, py
+, mock
+, glibcLocales
+, iocapture
+}:
+
+buildPythonPackage rec {
+ pname = "argh";
+ version = "0.26.2";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65";
+ };
+
+ checkInputs = [ pytest py mock glibcLocales iocapture ];
+
+ checkPhase = ''
+ export LANG="en_US.UTF-8"
+ py.test
+ '';
+
+ meta = with stdenv.lib; {
+ homepage = https://github.com/neithere/argh/;
+ description = "An unobtrusive argparse wrapper with natural syntax";
+ license = licenses.lgpl2;
+ maintainers = with maintainers; [ domenkozar ];
+ };
+
+}