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