nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, git
7, hatchling
8, setuptools-scm
9}:
10
11buildPythonPackage rec {
12 pname = "hatch-vcs";
13 version = "0.2.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 pname = "hatch_vcs";
20 inherit version;
21 sha256 = "sha256-mRPXM7NO7JuwNF0GJsoyFlpK0t4V0c5kPDbQnKkIq/8=";
22 };
23
24 nativeBuildInputs = [
25 hatchling
26 ];
27
28 propagatedBuildInputs = [
29 hatchling
30 setuptools-scm
31 ];
32
33 checkInputs = [
34 git
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "hatch_vcs"
40 ];
41
42 meta = with lib; {
43 description = "A plugin for Hatch that uses your preferred version control system (like Git) to determine project versions";
44 homepage = "https://github.com/ofek/hatch-vcs";
45 license = licenses.mit;
46 maintainers = with maintainers; [ cpcloud ];
47 };
48}