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
41
pkgs/development/python-modules/pyrevolve/default.nix
Normal file
41
pkgs/development/python-modules/pyrevolve/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, contexttimer
|
||||
, versioneer
|
||||
, cython
|
||||
, numpy
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyrevolve";
|
||||
version = "2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "devitocodes";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-5a4zvyf2vfz8aI6vFMI2vxekYrcUi/YuPFvZnUOx+Zs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ versioneer cython ];
|
||||
propagatedBuildInputs = [ contexttimer numpy ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
# Using approach bellow bcs the tests fail with the pytestCheckHook, throwing the following error
|
||||
# ImportError: cannot import name 'crevolve' from partially initialized module 'pyrevolve'
|
||||
# (most likely due to a circular import)
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "pyrevolve" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/devitocodes/pyrevolve";
|
||||
description = "Python library to manage checkpointing for adjoints";
|
||||
license = licenses.epl10;
|
||||
maintainers = with maintainers; [ atila ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue