depot/third_party/nixpkgs/pkgs/development/python-modules/etcd/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

37 lines
761 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 = "A Python etcd client that just works";
homepage = "https://github.com/dsoprea/PythonEtcdClient";
license = licenses.gpl2;
maintainers = with maintainers; [ ];
};
}