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
49
pkgs/development/python-modules/pysparse/default.nix
Normal file
49
pkgs/development/python-modules/pysparse/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, blas
|
||||
, lapack
|
||||
, isPy27
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "pysparse";
|
||||
version = "1.3-dev";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PythonOptimizers";
|
||||
repo = "pysparse";
|
||||
rev = "f8430bd99ac2a6209c462657c5792d10033888cc";
|
||||
sha256 = "19xcq8214yndra1xjhna3qjm32wprsqck97dlnw3xcww7rfy6hqh";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
blas
|
||||
lapack
|
||||
];
|
||||
|
||||
# Include patches from working version of PySparse 1.3-dev in
|
||||
# Conda-Forge,
|
||||
# https://github.com/conda-forge/pysparse-feedstock/tree/b69266911a2/recipe
|
||||
# Thanks to https://github.com/guyer
|
||||
patches = [ ./dropPackageLoader.patch ];
|
||||
|
||||
checkPhase = ''
|
||||
cd test
|
||||
${python.interpreter} -c "import pysparse"
|
||||
${python.interpreter} test_sparray.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/PythonOptimizers/pysparse";
|
||||
description = "A Sparse Matrix Library for Python";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue