Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
879 B · 53 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, stdenv, buildPythonPackage, libopaque, setuptools, pysodium, python,}:
buildPythonPackage rec { pname = "opaque"; pyproject = true;
inherit (libopaque) version src ;
sourceRoot = "${src.name}/python";
postPatch = let soext = stdenv.hostPlatform.extensions.sharedLibrary; in '' substituteInPlace ./opaque/__init__.py --replace-fail \ "ctypes.util.find_library('opaque') or ctypes.util.find_library('libopaque')" "'${lib.getLib libopaque}/lib/libopaque${soext}'" '';
build-system = [ setuptools ];
dependencies = [ pysodium ];
pythonImportsCheck = [ "opaque" ];
checkPhase = '' runHook preCheck
${python.interpreter} test/simple.py
runHook postCheck '';
meta = { inherit (libopaque.meta) description homepage license teams ; };}