depot/third_party/nixpkgs/pkgs/development/python-modules/etcd/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

36 lines
699 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, simplejson
, pytz
, requests
}:
buildPythonPackage rec {
pname = "etcd";
version = "2.0.8";
# PyPI package is incomplete
src = fetchFromGitHub {
owner = "dsoprea";
repo = "PythonEtcdClient";
rev = version;
sha256 = "sha256-h+jYIRSNdrGkW3tBV1ifIDEXU46EQGyeJoz/Mxym4pI=";
};
patchPhase = ''
sed -i -e '13,14d;37d' setup.py
'';
propagatedBuildInputs = [ simplejson pytz requests ];
# No proper tests are available
doCheck = false;
meta = with lib; {
description = "A Python etcd client that just works";
homepage = "https://github.com/dsoprea/PythonEtcdClient";
license = licenses.gpl2;
};
}