uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
61
pkgs/development/python-modules/proton-client/default.nix
Normal file
61
pkgs/development/python-modules/proton-client/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, substituteAll
|
||||
, bcrypt
|
||||
, pyopenssl
|
||||
, python-gnupg
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
, openssl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "proton-client";
|
||||
version = "0.7.1";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ProtonMail";
|
||||
repo = "proton-python-client";
|
||||
rev = version;
|
||||
sha256 = "sha256-mhPq9O/LCu3+E1jKlaJmrI8dxbA9BIwlc34qGwoxi5g=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bcrypt
|
||||
pyopenssl
|
||||
python-gnupg
|
||||
requests
|
||||
];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
patches = [
|
||||
# Patches library by fixing the openssl path
|
||||
(substituteAll {
|
||||
src = ./0001-OpenSSL-path-fix.patch;
|
||||
openssl = openssl.out;
|
||||
ext = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
#ValueError: Invalid modulus
|
||||
"test_modulus_verification"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "proton" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Proton client module";
|
||||
homepage = "https://github.com/ProtonMail/proton-python-client";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue