parabolic: 2024.5.0 -> 2025.1.4 (#378350)
[NixPkgs.git] / pkgs / development / python-modules / variants / default.nix
blob5aa3c89afd1bc20d71cabb5c6d2d8dfe218e694f
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools-scm,
8   six,
9 }:
11 buildPythonPackage rec {
12   pname = "variants";
13   version = "0.2.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-UR91tM90g8J+TYbZrM8rUxcmeQDBZtF2Nr7u0RiSm5A=";
21   };
23   nativeBuildInputs = [ setuptools-scm ];
25   nativeCheckInputs = [
26     pytestCheckHook
27     six
28   ];
30   pythonImportsCheck = [ "variants" ];
32   meta = with lib; {
33     description = "Library providing syntactic sugar for creating variant forms of a canonical function";
34     homepage = "https://github.com/python-variants/variants";
35     changelog = "https://github.com/python-variants/variants/releases/tag/${version}";
36     license = licenses.asl20;
37     maintainers = with maintainers; [ rakesh4g ];
38   };