default.nix (993B)
1 { 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 }: 6 7 python3Packages.buildPythonPackage rec { 8 pname = "pycouchdb"; 9 version = "1.16.0"; 10 pyproject = true; 11 disabled = python3Packages.pythonOlder "3.8"; 12 13 src = fetchFromGitHub { 14 owner = "histrio"; 15 repo = "py-couchdb"; 16 rev = "v${version}"; 17 hash = "sha256-jcDES8PC02F5eel2KThYZFXKzUm70UqktG521lt+Dj0="; 18 }; 19 20 postPatch = '' 21 substituteInPlace pyproject.toml \ 22 --replace-fail "poetry.masonry" "poetry.core.masonry" \ 23 --replace-fail "poetry>=" "poetry-core>=" 24 ''; 25 26 build-system = with python3Packages; [ poetry-core ]; 27 28 dependencies = with python3Packages; [ 29 requests 30 chardet 31 ]; 32 33 doCheck = false; 34 35 nativeCheckInputs = with python3Packages; [ 36 pytestCheckHook 37 responses 38 ]; 39 40 meta = { 41 description = "Modern pure python CouchDB Client"; 42 homepage = "https://github.com/histrio/py-couchdb"; 43 license = lib.licenses.bsd3; 44 maintainers = [ lib.maintainers.sikmir ]; 45 }; 46 }