depot/third_party/nixpkgs/pkgs/development/python-modules/variants/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

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 ];
};
}