depot/third_party/nixpkgs/pkgs/development/python-modules/hatch-vcs/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

54 lines
1,007 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
];
disabledTests = [
# incompatible with setuptools-scm>=7
# https://github.com/ofek/hatch-vcs/issues/8
"test_write"
];
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 ];
};
}