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