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
36
pkgs/development/python-modules/simplebayes/default.nix
Normal file
36
pkgs/development/python-modules/simplebayes/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, mock
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "simplebayes";
|
||||
version = "1.5.8";
|
||||
|
||||
# Use GitHub instead of pypi, because it contains tests.
|
||||
src = fetchFromGitHub {
|
||||
repo = "simplebayes";
|
||||
owner = "hickeroar";
|
||||
# NOTE: This is actually 1.5.8 but the tag is wrong!
|
||||
rev = "1.5.7";
|
||||
sha256 = "0mp7rvfdmpfxnka4czw3lv5kkh6gdxh6dm4r6hcln1zzfg9lxp4h";
|
||||
};
|
||||
|
||||
checkInputs = [ nose mock ];
|
||||
|
||||
postPatch = lib.optionalString isPy3k ''
|
||||
sed -i -e 's/open *(\([^)]*\))/open(\1, encoding="utf-8")/' setup.py
|
||||
'';
|
||||
|
||||
checkPhase = "nosetests tests/test.py";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Memory-based naive bayesian text classifier";
|
||||
homepage = "https://github.com/hickeroar/simplebayes";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue