From c2368173cf5dfe1f8d87c4c6ff53bd5ca04b540e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 6 Jan 2022 09:47:44 +0100 Subject: [PATCH] python3Packages.algebraic-data-types: 0.1.1 -> 0.2.1 --- .../algebraic-data-types/default.nix | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/algebraic-data-types/default.nix b/pkgs/development/python-modules/algebraic-data-types/default.nix index 8a46d405799b..7c4f9a4f6082 100644 --- a/pkgs/development/python-modules/algebraic-data-types/default.nix +++ b/pkgs/development/python-modules/algebraic-data-types/default.nix @@ -1,28 +1,45 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, hypothesis, mypy }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, hypothesis +, mypy +, pytestCheckHook +}: buildPythonPackage rec { pname = "algebraic-data-types"; - version = "0.1.1"; + version = "0.2.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "jspahrsummers"; repo = "adt"; rev = "v" + version; - sha256 = "1py94jsgh6wch59n9dxnwvk74psbpa1679zfmripa1qfc2218kqi"; + hash = "sha256-RHLI5rmFxklzG9dyYgYfSS/srCjcxNpzNcK/RPNJBPE="; }; - disabled = pythonOlder "3.6"; - checkInputs = [ + pytestCheckHook hypothesis mypy ]; + disabledTestPaths = [ + # AttributeError: module 'mypy.types' has no attribute 'TypeVarDef' + "tests/test_mypy_plugin.py" + ]; + + pythonImportsCheck = [ + "adt" + ]; + meta = with lib; { description = "Algebraic data types for Python"; homepage = "https://github.com/jspahrsummers/adt"; license = licenses.mit; maintainers = with maintainers; [ uri-canva ]; - platforms = platforms.unix; }; }