mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python312Packages.monkeytype: init at 23.3.0
This commit is contained in:
parent
9e79075ad9
commit
cf5c8c3369
58
pkgs/development/python-modules/monkeytype/default.nix
Normal file
58
pkgs/development/python-modules/monkeytype/default.nix
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
libcst,
|
||||
mypy-extensions,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "monkeytype";
|
||||
version = "23.3.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Instagram";
|
||||
repo = "MonkeyType";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-DQ/3go53+0PQkhZcL2dX8MI/z4Iq7kTYd5EbacMNxT4=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
libcst
|
||||
mypy-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"monkeytype"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Disable broken tests
|
||||
"test_excludes_site_packages"
|
||||
"test_callee_throws_recovers"
|
||||
"test_nested_callee_throws_recovers"
|
||||
"test_caller_handles_callee_exception"
|
||||
"test_generator_trace"
|
||||
"test_return_none"
|
||||
"test_access_property"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python library that generates static type annotations by collecting runtime types";
|
||||
homepage = "https://github.com/Instagram/MonkeyType/";
|
||||
changelog = "https://github.com/Instagram/MonkeyType/blob/${src.rev}/CHANGES.rst";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
};
|
||||
}
|
@ -8149,6 +8149,8 @@ self: super: with self; {
|
||||
|
||||
monkeyhex = callPackage ../development/python-modules/monkeyhex { };
|
||||
|
||||
monkeytype = callPackage ../development/python-modules/monkeytype { };
|
||||
|
||||
monosat = pkgs.monosat.python {
|
||||
inherit buildPythonPackage;
|
||||
inherit (self) cython pytestCheckHook;
|
||||
|
Loading…
Reference in New Issue
Block a user