16 pname = "python-etcd";
17 version = "0.5.0-unstable-2023-10-31";
20 src = fetchFromGitHub {
23 rev = "5aea0fd4461bd05dd96e4ad637f6be7bceb1cee5";
24 hash = "sha256-eVirStLOPTbf860jfkNMWtGf+r0VygLZRjRDjBMCVKg=";
27 build-system = [ setuptools ];
41 # arm64 is an unsupported platform on etcd 3.4. should be able to be removed on >= etcd 3.5
42 doCheck = !stdenv.hostPlatform.isAarch64;
45 for file in "test_auth" "integration/test_simple"; do
46 substituteInPlace src/etcd/tests/$file.py \
47 --replace-fail "assertEquals" "assertEqual"
51 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
52 # Seems to be failing because of network restrictions
53 # AttributeError: Can't get local object 'TestWatch.test_watch_indexed_generator.<locals>.watch_value'
55 "test_watch_generator"
57 "test_watch_indexed_generator"
60 __darwinAllowLocalNetworking = true;
63 description = "Python client for Etcd";
64 homepage = "https://github.com/jplana/python-etcd";
65 license = lib.licenses.mit;