depot/third_party/nixpkgs/pkgs/development/python-modules/etcd/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

42 lines
763 B
Nix

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