python3Packages.nptyping: init at 2.4.1

This commit is contained in:
Ben Darwin
2023-01-15 15:24:37 +01:00
committed by Frederik Rietdijk
parent 203709fe02
commit c1b736275e
2 changed files with 58 additions and 0 deletions
@@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, beartype
, invoke
, mypy
, numpy
, pandas
, feedparser
, typeguard
}:
buildPythonPackage rec {
pname = "nptyping";
version = "2.4.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ramonhagenaars";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-jV2MVMP/tlYN3djoViemGaJyzREoOJJamwG97WFhIvc=";
};
propagatedBuildInputs = [ numpy ];
checkInputs = [
beartype feedparser invoke mypy pandas pytestCheckHook typeguard
];
# tries to download data
disabledTests = [ "test_pandas_stubs_fork_is_synchronized" ];
disabledTestPaths = [
# missing pyright import:
"tests/test_pyright.py"
# can't find mypy stubs for pandas:
"tests/test_mypy.py"
"tests/pandas_/test_mypy_dataframe.py"
# tries to build wheel of package, broken/unnecessary under Nix:
"tests/test_wheel.py"
];
pythonImportsCheck = [
"nptyping"
];
meta = with lib; {
description = "Type hints for numpy";
homepage = "https://github.com/ramonhagenaars/nptyping";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}
+2
View File
@@ -6409,6 +6409,8 @@ self: super: with self; {
nplusone = callPackage ../development/python-modules/nplusone { };
nptyping = callPackage ../development/python-modules/nptyping { };
npyscreen = callPackage ../development/python-modules/npyscreen { };
nsapi = callPackage ../development/python-modules/nsapi { };