1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatchling,
7 hatch-vcs,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "ar";
13 version = "1.0.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "vidstige";
18 repo = "ar";
19 tag = "v${version}";
20 hash = "sha256-azbqlSO5YE6zMrDoVNLDyGeed5H4mSyNEE02AmoZIDs=";
21 };
22
23 build-system = [
24 hatchling
25 ];
26
27 dependencies = [
28 hatch-vcs
29 ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "ar" ];
34
35 disabledTests = lib.optionals stdenv.isDarwin [
36 "test_list"
37 "test_read_content"
38 "test_read_binary"
39 "test_read_content_ext"
40 "test_read_binary_ext"
41 ];
42
43 meta = {
44 description = "Implementation of the ar archive format";
45 homepage = "https://github.com/vidstige/ar";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ ethancedwards8 ];
48 };
49}