nixpkgs/pkgs/development/python-modules/typish/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
981 B
Nix
Raw Normal View History

2022-08-12 02:57:53 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
, pythonOlder
2022-08-12 02:57:53 +00:00
}:
buildPythonPackage rec {
pname = "typish";
version = "1.9.3";
format = "setuptools";
disabled = pythonOlder "3.7";
2022-08-12 02:57:53 +00:00
src = fetchFromGitHub {
owner = "ramonhagenaars";
repo = "typish";
2023-02-21 11:53:33 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-LnOg1dVs6lXgPTwRYg7uJ3LCdExYrCxS47UEJxKHhVU=";
2022-08-12 02:57:53 +00:00
};
nativeCheckInputs = [
2022-08-12 02:57:53 +00:00
numpy
pytestCheckHook
];
disabledTestPaths = [
# Requires a very old version of nptyping
# which has a circular dependency on typish
"tests/functions/test_instance_of.py"
];
pythonImportsCheck = [
"typish"
];
meta = with lib; {
description = "Python module for checking types of objects";
homepage = "https://github.com/ramonhagenaars/typish";
changelog = "https://github.com/ramonhagenaars/typish/releases/tag/v${version}";
2022-08-12 02:57:53 +00:00
license = licenses.mit;
maintainers = with maintainers; [ fmoda3 ];
};
}