nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 toml,
6 pyyaml,
7 packvers,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "dparse2";
13 version = "0.7.0";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "nexB";
18 repo = "dparse2";
19 tag = version;
20 hash = "sha256-JUTL+SVf1RRIXQqwFR7MnExsgGseSiO0a5YzzcqdXHw=";
21 };
22
23 propagatedBuildInputs = [
24 toml
25 pyyaml
26 packvers
27 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 disabledTestPaths = [
32 # Requires pipenv
33 "tests/test_parse.py"
34 ];
35
36 pythonImportsCheck = [ "dparse2" ];
37
38 meta = {
39 description = "Module to parse Python dependency files";
40 homepage = "https://github.com/nexB/dparse2";
41 changelog = "https://github.com/nexB/dparse2/blob/${version}/CHANGELOG.rst";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ fab ];
44 };
45}