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
40
pkgs/development/python-modules/opentimestamps/default.nix
Normal file
40
pkgs/development/python-modules/opentimestamps/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, isPy3k
|
||||
, bitcoinlib, GitPython, pysha3, git }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "opentimestamps";
|
||||
version = "0.4.1";
|
||||
disabled = (!isPy3k);
|
||||
|
||||
# We can't use the pypi source because it doesn't include README.md which is
|
||||
# needed in setup.py
|
||||
src = fetchFromGitHub {
|
||||
owner = "opentimestamps";
|
||||
repo = "python-opentimestamps";
|
||||
rev = "python-opentimestamps-v${version}";
|
||||
sha256 = "0c45ij8absfgwizq6dfgg81siq3y8605sgg184vazp292w8nqmqr";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# build against bitcoinlib-0.11
|
||||
(fetchpatch {
|
||||
url = "https://patch-diff.githubusercontent.com/raw/opentimestamps/python-opentimestamps/pull/43.patch";
|
||||
sha256 = "0bxzk4pzpqk7zrk2x7vn2bj2n3pc5whf8ijbd225s6674q450zbg";
|
||||
})
|
||||
];
|
||||
|
||||
# Remove a failing test which expects the test source file to reside in the
|
||||
# project's Git repo
|
||||
postPatch = ''
|
||||
rm opentimestamps/tests/core/test_git.py
|
||||
'';
|
||||
|
||||
checkInputs = [ git ];
|
||||
propagatedBuildInputs = [ bitcoinlib GitPython pysha3 ];
|
||||
|
||||
meta = {
|
||||
description = "Create and verify OpenTimestamps proofs";
|
||||
homepage = "https://github.com/opentimestamps/python-opentimestamps";
|
||||
license = lib.licenses.lgpl3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue