python3Packages.algebraic-data-types: 0.1.1 -> 0.2.1

This commit is contained in:
Fabian Affolter 2022-01-06 09:47:44 +01:00
parent 2dedc1eaa4
commit c2368173cf

View File

@ -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;
};
}