Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, stdenv, libdiscid, buildPythonPackage, fetchPypi, setuptools, sphinxHook, sphinx-autodoc-typehints, sphinx-rtd-theme, pytestCheckHook,}:
buildPythonPackage rec { pname = "discid"; version = "1.4.2"; pyproject = true;
outputs = [ "out" "doc" ];
src = fetchPypi { inherit pname version; hash = "sha256-DLtLlpScaMvGPJ/EWF75t+wrnTniO84LTbXWHG97geY="; };
build-system = [ setuptools ];
patchPhase = let extension = stdenv.hostPlatform.extensions.sharedLibrary; in '' substituteInPlace discid/libdiscid.py \ --replace "_open_library(_LIB_NAME)" \ "_open_library('${libdiscid}/lib/libdiscid${extension}')" '';
nativeBuildInputs = [ sphinxHook sphinx-autodoc-typehints sphinx-rtd-theme ];
nativeCheckInputs = [ pytestCheckHook ];
meta = { description = "Python binding of libdiscid"; homepage = "https://python-discid.readthedocs.org/"; license = lib.licenses.lgpl3Plus; };}