Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 45 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib, adslib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "pyads"; version = "3.4.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "stlehmann"; repo = "pyads"; rev = "refs/tags/${version}"; hash = "sha256-HJ/dlRuwFSY5j/mAp6rLMlTV59GFwrTV27n73TWlCUo="; };
build-system = [ setuptools ];
buildInputs = [ adslib ];
patchPhase = '' substituteInPlace pyads/pyads_ex.py \ --replace-fail "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")" '';
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyads" ];
meta = with lib; { description = "Python wrapper for TwinCAT ADS library"; homepage = "https://github.com/MrLeeh/pyads"; changelog = "https://github.com/stlehmann/pyads/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ jamiemagee ]; };}