depot/third_party/nixpkgs/pkgs/development/python-modules/gemfileparser2/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
1,018 B
Nix

{
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 ];
};
}