mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
python3Packages.type-infer: init at 0.0.15
This commit is contained in:
parent
6187c4ded1
commit
dfd3b86289
71
pkgs/development/python-modules/type-infer/default.nix
Normal file
71
pkgs/development/python-modules/type-infer/default.nix
Normal file
@ -0,0 +1,71 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, poetry-core
|
||||
, colorlog
|
||||
, dataclasses-json
|
||||
, langid
|
||||
, nltk
|
||||
, numpy
|
||||
, pandas
|
||||
, psutil
|
||||
, python-dateutil
|
||||
, scipy
|
||||
, toml
|
||||
, nltk-data
|
||||
, symlinkJoin
|
||||
}:
|
||||
let
|
||||
testNltkData = symlinkJoin {
|
||||
name = "nltk-test-data";
|
||||
paths = [ nltk-data.punkt nltk-data.stopwords ];
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "type-infer";
|
||||
version = "0.0.15";
|
||||
format = "pyproject";
|
||||
|
||||
disable = pythonOlder "3.8";
|
||||
|
||||
# using PyPI because the repo does not have tags or release branches
|
||||
src = fetchPypi {
|
||||
pname = "type_infer";
|
||||
inherit version;
|
||||
hash = "sha256-AnThYE6hHc3Pwu8fl0VBiQJfGVjeEKo4RrCsOl2pfCA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
colorlog
|
||||
dataclasses-json
|
||||
langid
|
||||
nltk
|
||||
numpy
|
||||
pandas
|
||||
psutil
|
||||
python-dateutil
|
||||
scipy
|
||||
toml
|
||||
];
|
||||
|
||||
# PyPI package does not include tests
|
||||
doCheck = false;
|
||||
|
||||
# Package import requires NLTK data to be downloaded
|
||||
# It is the only way to set NLTK_DATA environment variable,
|
||||
# so that it is available in pythonImportsCheck
|
||||
env.NLTK_DATA = testNltkData;
|
||||
pythonImportsCheck = [ "type_infer" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Automated type inference for Machine Learning pipelines";
|
||||
homepage = "https://pypi.org/project/type-infer/";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ mbalatsko ];
|
||||
};
|
||||
}
|
@ -13303,6 +13303,8 @@ self: super: with self; {
|
||||
|
||||
typer = callPackage ../development/python-modules/typer { };
|
||||
|
||||
type-infer = callPackage ../development/python-modules/type-infer { };
|
||||
|
||||
types-appdirs = callPackage ../development/python-modules/types-appdirs { };
|
||||
|
||||
types-awscrt = callPackage ../development/python-modules/types-awscrt { };
|
||||
|
Loading…
Reference in New Issue
Block a user