python3Packages.remarshal: fix source, use finalAttrs (#525972)
This commit is contained in:
@@ -21,15 +21,15 @@
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "remarshal";
|
||||
version = "1.3.0"; # test with `nix-build pkgs/pkgs-lib/format`
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbohdan";
|
||||
owner = "remarshal-project";
|
||||
repo = "remarshal";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-/K8x6ij23pk5O1+XJdFHaGbZ47nFMbXzp+4UMO5dGp4=";
|
||||
};
|
||||
|
||||
@@ -50,11 +50,11 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/remarshal-project/remarshal/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/remarshal-project/remarshal/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "Convert between TOML, YAML and JSON";
|
||||
license = lib.licenses.mit;
|
||||
homepage = "https://github.com/dbohdan/remarshal";
|
||||
homepage = "https://github.com/remarshal-project/remarshal";
|
||||
maintainers = [ ];
|
||||
mainProgram = "remarshal";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user