nixpkgs/pkgs/development/python-modules/sumtypes/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

38 lines
679 B
Nix

{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "sumtypes";
version = "0.1a6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "radix";
repo = pname;
rev = version;
hash = "sha256-qwQyFKVnGEqHUqFmUSnHVvedsp2peM6rJZcS90paLOo=";
};
propagatedBuildInputs = [
attrs
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Algebraic data types for Python";
homepage = "https://github.com/radix/sumtypes";
license = licenses.mit;
maintainers = with maintainers; [ NieDzejkob ];
};
}