9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
42 lines
860 B
Nix
42 lines
860 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "variants";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-UR91tM90g8J+TYbZrM8rUxcmeQDBZtF2Nr7u0RiSm5A=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"variants"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library providing syntactic sugar for creating variant forms of a canonical function";
|
|
homepage = "https://github.com/python-variants/variants";
|
|
changelog = "https://github.com/python-variants/variants/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
};
|
|
}
|