nixpkgs/pkgs/development/python-modules/variants/default.nix
Fabian Affolter d8c7634830 python311Packages.variants: remove pytest-runner
- add changelog to meta
- add pythonImportsCheck
- disable on unsupported Python releases
- add format
2023-06-10 14:44:20 +02:00

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