lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.pyoprf: init at 0.7.1 (#432855)

authored by

Gaétan Lepage and committed by
GitHub
9b0c9eee db1bb33f

+143
+54
pkgs/development/python-modules/pyoprf/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + buildPythonPackage, 5 + liboprf, 6 + setuptools, 7 + pysodium, 8 + securestring, 9 + pytestCheckHook, 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "pyoprf"; 14 + pyproject = true; 15 + 16 + inherit (liboprf) 17 + version 18 + src 19 + ; 20 + 21 + postPatch = 22 + let 23 + soext = stdenv.hostPlatform.extensions.sharedLibrary; 24 + in 25 + '' 26 + substituteInPlace ./pyoprf/__init__.py --replace-fail \ 27 + "ctypes.util.find_library('oprf') or ctypes.util.find_library('liboprf')" "'${lib.getLib liboprf}/lib/liboprf${soext}'" 28 + ''; 29 + 30 + sourceRoot = "${src.name}/python"; 31 + 32 + build-system = [ setuptools ]; 33 + 34 + dependencies = [ 35 + pysodium 36 + securestring 37 + ]; 38 + 39 + pythonImportsCheck = [ "pyoprf" ]; 40 + 41 + nativeCheckInputs = [ pytestCheckHook ]; 42 + 43 + pytestFlagsArray = [ "tests/test.py" ]; 44 + 45 + meta = { 46 + inherit (liboprf.meta) 47 + description 48 + homepage 49 + changelog 50 + license 51 + teams 52 + ; 53 + }; 54 + }
+47
pkgs/development/python-modules/pysodium/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + buildPythonPackage, 5 + fetchFromGitHub, 6 + setuptools, 7 + libsodium, 8 + pytestCheckHook, 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "pysodium"; 13 + version = "0.7.18"; 14 + pyproject = true; 15 + 16 + src = fetchFromGitHub { 17 + owner = "stef"; 18 + repo = "pysodium"; 19 + tag = "v${version}"; 20 + hash = "sha256-F2215AAI8UIvn6UbaJ/YxI4ZolCzlwY6nS5IafTs+i4="; 21 + }; 22 + 23 + postPatch = 24 + let 25 + soext = stdenv.hostPlatform.extensions.sharedLibrary; 26 + in 27 + '' 28 + substituteInPlace ./pysodium/__init__.py --replace-fail \ 29 + "ctypes.util.find_library('sodium') or ctypes.util.find_library('libsodium')" "'${libsodium}/lib/libsodium${soext}'" 30 + ''; 31 + 32 + build-system = [ setuptools ]; 33 + 34 + buildInputs = [ libsodium ]; 35 + 36 + nativeCheckInputs = [ pytestCheckHook ]; 37 + 38 + pythonImportsCheck = [ "pysodium" ]; 39 + 40 + meta = { 41 + description = "Wrapper for libsodium providing high level crypto primitives"; 42 + homepage = "https://github.com/stef/pysodium"; 43 + changelog = "https://github.com/stef/pysodium/releases/tag/v${version}"; 44 + maintainers = [ lib.maintainers.ethancedwards8 ]; 45 + license = lib.licenses.bsd2; 46 + }; 47 + }
+36
pkgs/development/python-modules/securestring/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + setuptools, 6 + openssl, 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "securestring"; 11 + version = "0.2"; 12 + pyproject = true; 13 + 14 + src = fetchFromGitHub { 15 + owner = "dnet"; 16 + repo = "pysecstr"; 17 + tag = "v${version}"; 18 + hash = "sha256-FV5NUPberA5nqHad8IwkQLMldT1DPqTGpqOwgQ2zSdI="; 19 + }; 20 + 21 + build-system = [ setuptools ]; 22 + 23 + buildInputs = [ openssl ]; 24 + 25 + pythonImportsCheck = [ "SecureString" ]; 26 + 27 + # no upstream tests exist 28 + doCheck = false; 29 + 30 + meta = { 31 + description = "Clears the contents of strings containing cryptographic material"; 32 + homepage = "https://github.com/dnet/pysecstr"; 33 + license = lib.licenses.mit; 34 + maintainers = [ lib.maintainers.ethancedwards8 ]; 35 + }; 36 + }
+6
pkgs/top-level/python-packages.nix
··· 13520 13520 13521 13521 pyoppleio-legacy = callPackage ../development/python-modules/pyoppleio-legacy { }; 13522 13522 13523 + pyoprf = callPackage ../development/python-modules/pyoprf { }; 13524 + 13523 13525 pyorc = callPackage ../development/python-modules/pyorc { }; 13524 13526 13525 13527 pyorthanc = callPackage ../development/python-modules/pyorthanc { }; ··· 14077 14079 pysnow = callPackage ../development/python-modules/pysnow { }; 14078 14080 14079 14081 pysocks = callPackage ../development/python-modules/pysocks { }; 14082 + 14083 + pysodium = callPackage ../development/python-modules/pysodium { }; 14080 14084 14081 14085 pysol-cards = callPackage ../development/python-modules/pysol-cards { }; 14082 14086 ··· 16306 16310 sectxt = callPackage ../development/python-modules/sectxt { }; 16307 16311 16308 16312 secure = callPackage ../development/python-modules/secure { }; 16313 + 16314 + securestring = callPackage ../development/python-modules/securestring { }; 16309 16315 16310 16316 securesystemslib = callPackage ../development/python-modules/securesystemslib { }; 16311 16317