1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "pyprojectize";
9 version = "1a6";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "hroncok";
14 repo = "pyprojectize";
15 tag = version;
16 hash = "sha256-NW74IoGdghtX2Wlxocosx8zb3Htfqq6zN9iNpICdffs=";
17 };
18
19 build-system = with python3.pkgs; [
20 hatch-vcs
21 hatchling
22 ];
23
24 dependencies = with python3.pkgs; [
25 packaging
26 specfile
27 ];
28
29 nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "pyprojectize" ];
32
33 meta = {
34 description = "Tool to convert a RPM spec file from %py3_build etc. macros to pyproject";
35 homepage = "https://github.com/hroncok/pyprojectize";
36 changelog = "https://github.com/hroncok/pyprojectize/releases/tag/${src.tag}";
37 license = lib.licenses.mit0;
38 maintainers = with lib.maintainers; [ fab ];
39 mainProgram = "pyprojectize";
40 };
41}