nixpkgs/pkgs/development/python-modules/etcd/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +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; [ ];
};
}