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
42
pkgs/development/python-modules/sjcl/default.nix
Normal file
42
pkgs/development/python-modules/sjcl/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pycryptodome
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sjcl";
|
||||
version = "0.2.1";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
# PyPi release is missing tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "berlincode";
|
||||
repo = pname;
|
||||
# commit from: 2018-08-16, because there aren't any tags on git
|
||||
rev = "e8bdad312fa99c89c74f8651a1240afba8a9f3bd";
|
||||
sha256 = "1v8rc55v28v8cl7nxcavj34am005wi63zcvwnbc6pyfbv4ss30ab";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pycryptodome ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m unittest discover
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sjcl"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format. This is a wrapper around pycrypto.";
|
||||
homepage = "https://github.com/berlincode/sjcl";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ binsky ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue