blob: 4a24fb07d7b11e994ec7198b556f527a5c91b394 (
plain) (
blame)
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
42
43
44
45
46
47
48
|
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "gemfileparser2";
version = "0.9.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-BFKJZOf0W2b0YNbKIwnrmoKGvtP8A6R9PrUt7kYC/Dk=";
};
dontConfigure = true;
postPatch = ''
# https://github.com/nexB/gemfileparser2/pull/8
substituteInPlace setup.cfg \
--replace ">=3.6.*" ">=3.6"
'';
nativeBuildInputs = [
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"gemfileparser2"
];
meta = with lib; {
description = "Library to parse Rubygem gemspec and Gemfile files";
homepage = "https://github.com/nexB/gemfileparser2";
changelog = "https://github.com/nexB/gemfileparser2/blob/v${version}/CHANGELOG.rst";
license = with licenses; [ mit /* or */ gpl3Plus ];
maintainers = with maintainers; [ harvidsen ];
};
}
|