1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6, setuptools-scm 7, six 8}: 9 10buildPythonPackage rec { 11 pname = "variants"; 12 version = "0.2.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-UR91tM90g8J+TYbZrM8rUxcmeQDBZtF2Nr7u0RiSm5A="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 six 29 ]; 30 31 pythonImportsCheck = [ 32 "variants" 33 ]; 34 35 meta = with lib; { 36 description = "Library providing syntactic sugar for creating variant forms of a canonical function"; 37 homepage = "https://github.com/python-variants/variants"; 38 changelog = "https://github.com/python-variants/variants/releases/tag/${version}"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ rakesh4g ]; 41 }; 42}