1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools-scm,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "variants";
13 version = "0.2.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-UR91tM90g8J+TYbZrM8rUxcmeQDBZtF2Nr7u0RiSm5A=";
21 };
22
23 nativeBuildInputs = [ setuptools-scm ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 six
28 ];
29
30 pythonImportsCheck = [ "variants" ];
31
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 };
39}