pythonPackages.pandas-stubs: init at 1.2.0.39

This commit is contained in:
Malo Bourgon
2021-12-23 11:54:20 -08:00
committed by Jonathan Ringer
parent de045be397
commit 4d31093afc
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, typing-extensions
, mypy
}:
buildPythonPackage rec {
pname = "pandas-stubs";
version = "1.2.0.39";
disabled = isPy27;
# Use GitHub source since PyPi source does not include tests
src = fetchFromGitHub {
owner = "VirtusLab";
repo = pname;
rev = "2bd932777d1050ea8f86c527266a4cd205aa15b1";
sha256 = "m2McU53NNvRwnWKN9GL8dW1eCGKbTi0471szRQwZu1Q=";
};
propagatedBuildInputs = [
typing-extensions
];
pythonImportsCheck = [ "pandas" ];
checkInputs = [ mypy ];
checkPhase = ''
mypy --config-file mypy.ini third_party/3/pandas tests/snippets
'';
meta = with lib; {
description = "Type annotations for Pandas";
homepage = "https://github.com/VirtusLab/pandas-stubs";
license = licenses.mit;
maintainers = [ maintainers.malo ];
};
}
+2
View File
@@ -5828,6 +5828,8 @@ in {
openapi-core = callPackage ../development/python-modules/openapi-core { };
pandas-stubs = callPackage ../development/python-modules/pandas-stubs { };
parameterizedtestcase = callPackage ../development/python-modules/parameterizedtestcase { };
pdunehd = callPackage ../development/python-modules/pdunehd { };