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
35
pkgs/development/python-modules/pymystem3/default.nix
Normal file
35
pkgs/development/python-modules/pymystem3/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, requests
|
||||
, flake8
|
||||
, mock
|
||||
, pytest
|
||||
, mystem
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymystem3";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "15gv78m17g958gfka6rr3rg230g6b5ssgk8bfpsp7k2iajhxdbhs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
checkInputs = [ flake8 mock pytest ];
|
||||
doCheck = isPy3k; # fails on linting
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's#^_mystem_info = .*#_mystem_info = ["${mystem}/bin", "${mystem}/bin/mystem"]#' pymystem3/constants.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper for the Yandex MyStem 3.1 morpholocial analyzer of the Russian language";
|
||||
homepage = "https://github.com/nlpub/pymystem3";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue