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
60
pkgs/development/python-modules/pycm/default.nix
Normal file
60
pkgs/development/python-modules/pycm/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, matplotlib
|
||||
, numpy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, seaborn
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycm";
|
||||
version = "3.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sepandhaghighi";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-iDt1voNcn59bZN/AyKrWFBIymTT618o91kz2AV42hWs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
matplotlib
|
||||
numpy
|
||||
seaborn
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Remove a trivial dependency on the author's `art` Python ASCII art library
|
||||
rm pycm/__main__.py
|
||||
# Also depends on python3Packages.notebook
|
||||
rm Otherfiles/notebook_check.py
|
||||
substituteInPlace setup.py \
|
||||
--replace '=get_requires()' '=[]'
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Output formatting error
|
||||
"pycm.pycm_compare.Compare"
|
||||
"plot_test"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pycm"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multiclass confusion matrix library";
|
||||
homepage = "https://pycm.ir";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue