git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #153696 from fabaff/fix-adt

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

commit0867d17540d3f04eded169679f2708fbad6f13b1 authorFabian Affolter <fabian@affolter-engineering.ch> dateFri 7 Jan 2022, 10:03 (5 years ago) parentd244d17c236817
1 file changed+23−6
pkgs/development/python-modules/algebraic-data-types/default.nix+23−6
pkgs/development/python-modules/algebraic-data-types/default.nix+23−6
@@ -1,28 +1,45 @@
1−{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, hypothesis, mypy }:
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pythonOlder
5+, hypothesis
6+, mypy
7+, pytestCheckHook
8+}:
29
310buildPythonPackage rec {
411 pname = "algebraic-data-types";
5− version = "0.1.1";
12+ version = "0.2.1";
13+ format = "setuptools";
14+
15+ disabled = pythonOlder "3.7";
616
717 src = fetchFromGitHub {
818 owner = "jspahrsummers";
919 repo = "adt";
1020 rev = "v" + version;
11− sha256 = "1py94jsgh6wch59n9dxnwvk74psbpa1679zfmripa1qfc2218kqi";
21+ hash = "sha256-RHLI5rmFxklzG9dyYgYfSS/srCjcxNpzNcK/RPNJBPE=";
1222 };
1323
14− disabled = pythonOlder "3.6";
15−
1624 checkInputs = [
25+ pytestCheckHook
1726 hypothesis
1827 mypy
1928 ];
2029
30+ disabledTestPaths = [
31+ # AttributeError: module 'mypy.types' has no attribute 'TypeVarDef'
32+ "tests/test_mypy_plugin.py"
33+ ];
34+
35+ pythonImportsCheck = [
36+ "adt"
37+ ];
38+
2139 meta = with lib; {
2240 description = "Algebraic data types for Python";
2341 homepage = "https://github.com/jspahrsummers/adt";
2442 license = licenses.mit;
2543 maintainers = with maintainers; [ uri-canva ];
26− platforms = platforms.unix;
2744 };
2845}