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
34
pkgs/development/python-modules/certvalidator/default.nix
Normal file
34
pkgs/development/python-modules/certvalidator/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub
|
||||
, asn1crypto, oscrypto
|
||||
, cacert
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "certvalidator";
|
||||
version = "0.11.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wbond";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-yVF7t4FuU3C9fDg67JeM7LWZZh/mv5F4EKmjlO4AuBY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ asn1crypto oscrypto ];
|
||||
|
||||
checkInputs = [ cacert ];
|
||||
checkPhase = ''
|
||||
# Tests are run with a custom executor/loader
|
||||
# The regex to skip specific tests relies on negative lookahead of regular expressions
|
||||
# We're skipping the few tests that rely on the network, fetching CRLs, OCSP or remote certificates
|
||||
python -c 'import dev.tests; dev.tests.run("^(?!.*test_(basic_certificate_validator_tls|fetch|revocation|build_path)).*$")'
|
||||
'';
|
||||
pythonImportsCheck = [ "certvalidator" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/wbond/certvalidator";
|
||||
description = "Validates X.509 certificates and paths";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ baloo ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue