1{ buildPythonPackage
2, isPy27
3, fetchPypi
4, pytest-runner
5, setuptools-scm
6, singledispatch ? null
7, pytest
8, lib
9}:
10
11buildPythonPackage rec {
12 pname = "variants";
13 version = "0.2.0";
14
15 src = fetchPypi {
16 inherit pname version ;
17 sha256 = "511f75b4cf7483c27e4d86d9accf2b5317267900c166d17636beeed118929b90";
18 };
19
20 nativeBuildInputs = [
21 pytest-runner
22 setuptools-scm
23 ];
24
25 checkInputs = [
26 pytest
27 ] ++ lib.optionals isPy27 [ singledispatch ];
28
29 meta = with lib; {
30 description = "Library providing syntactic sugar for creating variant forms of a canonical function";
31 homepage = "https://github.com/python-variants/variants";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ rakesh4g ];
34 };
35}