summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/gemfileparser2/default.nix
blob: 0060337278c2410c790b562b1c7bf5f9f1c8b76b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "gemfileparser2";
  version = "0.9.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ezfioBwlZMGb1cEzzwa1afXUrTnxsgpzX0CNOTyVzgY=";
  };

  dontConfigure = true;

  build-system = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "gemfileparser2" ];

  meta = {
    description = "Library to parse Rubygem gemspec and Gemfile files";
    homepage = "https://github.com/aboutcode-org/gemfileparser2";
    changelog = "https://github.com/aboutcode-org/gemfileparser2/blob/v${version}/CHANGELOG.rst";
    license = with lib.licenses; [
      mit # or
      gpl3Plus
    ];
    maintainers = with lib.maintainers; [ harvidsen ];
  };
}