forked from mirrors/nixpkgs
python3Packages.hatch-vcs: init at 0.2.0
This commit is contained in:
parent
65401d1b9f
commit
4bc4e82021
48
pkgs/development/python-modules/hatch-vcs/default.nix
Normal file
48
pkgs/development/python-modules/hatch-vcs/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3792,6 +3792,8 @@ in {
|
||||||
|
|
||||||
hatchling = callPackage ../development/python-modules/hatchling { };
|
hatchling = callPackage ../development/python-modules/hatchling { };
|
||||||
|
|
||||||
|
hatch-vcs = callPackage ../development/python-modules/hatch-vcs { };
|
||||||
|
|
||||||
haversine = callPackage ../development/python-modules/haversine { };
|
haversine = callPackage ../development/python-modules/haversine { };
|
||||||
|
|
||||||
hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };
|
hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };
|
||||||
|
|
Loading…
Reference in a new issue