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
52
pkgs/development/python-modules/cchardet/default.nix
Normal file
52
pkgs/development/python-modules/cchardet/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cchardet";
|
||||
version = "2.1.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cchardet"
|
||||
];
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
# on non x86-64 some charsets are identified as their superset, so we skip these tests (last checked with version 2.1.7)
|
||||
preCheck = ''
|
||||
cp -R src/tests $TMPDIR
|
||||
pushd $TMPDIR
|
||||
'' + lib.optionalString (stdenv.hostPlatform.system != "x86_64-linux") ''
|
||||
rm $TMPDIR/tests/testdata/th/tis-620.txt # identified as iso-8859-11, which is fine for all practical purposes
|
||||
rm $TMPDIR/tests/testdata/ga/iso-8859-1.txt # identified as windows-1252, which is fine for all practical purposes
|
||||
rm $TMPDIR/tests/testdata/fi/iso-8859-1.txt # identified as windows-1252, which is fine for all practical purposes
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
nosetests
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
popd
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "High-speed universal character encoding detector";
|
||||
homepage = "https://github.com/PyYoshi/cChardet";
|
||||
license = lib.licenses.mpl11;
|
||||
maintainers = with lib.maintainers; [ ivan ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue