depot/third_party/nixpkgs/pkgs/development/python-modules/datasalad/default.nix

47 lines
932 B
Nix
Raw Normal View History

{
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
lib,
more-itertools,
psutil,
pytestCheckHook,
unzip,
}:
buildPythonPackage rec {
pname = "datasalad";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "datalad";
repo = "datasalad";
rev = "refs/tags/v${version}";
hash = "sha256-UIrbvFz674+HarFbv1eF++flj1hOR0cZyqKQSl+G7xY=";
};
build-system = [
hatchling
hatch-vcs
];
nativeCheckInputs = [
pytestCheckHook
more-itertools
psutil
unzip
];
pythonImportsCheck = [ "datasalad" ];
meta = {
description = "Pure-Python library with a collection of utilities for working with Git and git-annex";
changelog = "https://github.com/datalad/datasalad/blob/main/CHANGELOG.md";
homepage = "https://github.com/datalad/datasalad";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gador ];
};
}