10 buildPythonPackage rec {
13 format = "setuptools";
15 src = fetchFromGitHub {
18 rev = "refs/tags/${version}";
19 hash = "sha256-1MAdiX6+u35f6S8a0ZcIIebZE8bbxTy+0TnMohJ7J6s=";
23 substituteInPlace pyunpack/__init__.py \
25 '_exepath("patool")' \
26 '"${patool}/bin/.patool-wrapped"'
29 propagatedBuildInputs = [
34 nativeCheckInputs = [ pytestCheckHook ];
36 pytestFlagsArray = [ "-x" ];
38 pythonImportsCheck = [ "pyunpack" ];
44 # We get "patool: error: unrecognized arguments: --password 123"
45 # The currently packaged version of patool does not support this flag.
46 # https://github.com/wummel/patool/issues/114
47 # FIXME: Re-enable these once patool is updated
53 description = "Unpack archive files in python";
54 homepage = "https://github.com/ponty/pyunpack";
55 license = licenses.bsd2;
56 maintainers = with maintainers; [ pbsds ];