depot/third_party/nixpkgs/pkgs/development/python-modules/hatch-vcs/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

48 lines
873 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, git
, hatchling
, setuptools-scm
}:
buildPythonPackage rec {
pname = "hatch-vcs";
version = "0.2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "hatch_vcs";
inherit version;
sha256 = "sha256-mRPXM7NO7JuwNF0GJsoyFlpK0t4V0c5kPDbQnKkIq/8=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
hatchling
setuptools-scm
];
checkInputs = [
git
pytestCheckHook
];
pythonImportsCheck = [
"hatch_vcs"
];
meta = with lib; {
description = "A plugin for Hatch that uses your preferred version control system (like Git) to determine project versions";
homepage = "https://github.com/ofek/hatch-vcs";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}