24 lines
645 B
Nix
24 lines
645 B
Nix
{ lib, fetchPypi, buildPythonPackage
|
|
, setuptools_scm
|
|
, bz2file, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.7.1";
|
|
pname = "xopen";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1i68nf73abzd19x4ccrk2nxfblqfzz0zzm6vh0l3qzin0np1d89r";
|
|
};
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
propagatedBuildInputs = [ bz2file ];
|
|
checkInputs = [ pytest ];
|
|
|
|
meta = with lib; {
|
|
homepage = "hhttps://github.com/marcelm/xopen";
|
|
description = "Python module provides an xopen function that works like the built-in open function, but can also deal with compressed files (gzip, bzip2, and xz).";
|
|
license = licenses.mit;
|
|
};
|
|
}
|