1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "gemfileparser2";
13 version = "0.9.4";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-ezfioBwlZMGb1cEzzwa1afXUrTnxsgpzX0CNOTyVzgY=";
21 };
22
23 dontConfigure = true;
24
25 build-system = [
26 setuptools
27 setuptools-scm
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "gemfileparser2" ];
33
34 meta = with lib; {
35 description = "Library to parse Rubygem gemspec and Gemfile files";
36 homepage = "https://github.com/aboutcode-org/gemfileparser2";
37 changelog = "https://github.com/aboutcode-org/gemfileparser2/blob/v${version}/CHANGELOG.rst";
38 license = with licenses; [
39 mit # or
40 gpl3Plus
41 ];
42 maintainers = with maintainers; [ harvidsen ];
43 };
44}