diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-15 15:23:31 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-17 07:46:55 +0200 |
commit | 7fde0dd2ef2a86f2e28074645e6774d0cacff10d (patch) | |
tree | cc31507060765f484d3c23fb2209a063bfb21818 /pkgs/development/python-modules/etcd | |
parent | 63a0e8613a507a24694ae23df698c6b5c148484d (diff) |
pythonPackages.etcd: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/etcd')
-rw-r--r-- | pkgs/development/python-modules/etcd/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/etcd/default.nix b/pkgs/development/python-modules/etcd/default.nix new file mode 100644 index 0000000000000..1e6e1e70944d6 --- /dev/null +++ b/pkgs/development/python-modules/etcd/default.nix @@ -0,0 +1,34 @@ +{ stdenv +, buildPythonPackage +, fetchurl +, simplejson +, pytz +, requests +}: + +buildPythonPackage rec { + pname = "etcd"; + version = "2.0.8"; + + # PyPI package is incomplete + src = fetchurl { + url = "https://github.com/dsoprea/PythonEtcdClient/archive/${version}.tar.gz"; + sha256 = "0fi6rxa1yxvz7nwrc7dw6fax3041d6bj3iyhywjgbkg7nadi9i8v"; + }; + + patchPhase = '' + sed -i -e '13,14d;37d' setup.py + ''; + + propagatedBuildInputs = [ simplejson pytz requests ]; + + # No proper tests are available + doCheck = false; + + meta = with stdenv.lib; { + description = "A Python etcd client that just works"; + homepage = https://github.com/dsoprea/PythonEtcdClient; + license = licenses.gpl2; + }; + +} |