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
54
pkgs/development/python-modules/gtts/default.nix
Normal file
54
pkgs/development/python-modules/gtts/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, beautifulsoup4
|
||||
, click
|
||||
, gtts-token
|
||||
, mock
|
||||
, pytest
|
||||
, requests
|
||||
, six
|
||||
, testfixtures
|
||||
, twine
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gtts";
|
||||
version = "2.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pndurette";
|
||||
repo = "gTTS";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-hQnFHi85Rifco0afLF8kKNOy9oPxKoupfmdm+fht6Cg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
click
|
||||
gtts-token
|
||||
requests
|
||||
six
|
||||
urllib3
|
||||
twine
|
||||
];
|
||||
|
||||
checkInputs = [ pytest mock testfixtures ];
|
||||
|
||||
# majority of tests just try to call out to Google's Translate API endpoint
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "gtts" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python library and CLI tool to interface with Google Translate text-to-speech API";
|
||||
homepage = "https://gtts.readthedocs.io";
|
||||
changelog = "https://gtts.readthedocs.io/en/latest/changelog.html";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ unode ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue