mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 16:36:38 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
26 lines
620 B
Nix
26 lines
620 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flashtext";
|
|
version = "2.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1kq5idfp9skqkjdcld40igxn2yqjly8jpmxawkp0skwxw29jpgm1";
|
|
};
|
|
|
|
# json files that tests look for don't exist in the pypi dist
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/vi3k6i5/flashtext";
|
|
description = "Python package to replace keywords in sentences or extract keywords from sentences";
|
|
maintainers = with lib.maintainers; [ aanderse ];
|
|
license = with lib.licenses; [ mit ];
|
|
};
|
|
}
|