mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 06:31:15 +00:00
python3Packages.variants: modernize
This commit is contained in:
@@ -8,13 +8,16 @@
|
||||
six,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "variants";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "variants";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-UR91tM90g8J+TYbZrM8rUxcmeQDBZtF2Nr7u0RiSm5A=";
|
||||
};
|
||||
|
||||
@@ -33,8 +36,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
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}";
|
||||
changelog = "https://github.com/python-variants/variants/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ rakesh4g ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user