2018-10-16 18:29:36 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-05 23:34:35 +01:00
|
|
|
, fetchpatch
|
2018-10-16 18:29:36 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyxdg";
|
2018-11-04 10:35:14 +00:00
|
|
|
version = "0.26";
|
2018-10-16 18:29:36 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:14 +00:00
|
|
|
sha256 = "fe2928d3f532ed32b39c32a482b54136fe766d19936afc96c8f00645f9da1a06";
|
2018-10-16 18:29:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# error: invalid command 'test'
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-05 23:34:35 +01:00
|
|
|
patches = [
|
|
|
|
# see: https://gitlab.freedesktop.org/xdg/pyxdg/-/merge_requests/5
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.freedesktop.org/xdg/pyxdg/-/commit/78405aaa34463db2c6f33ca28ae2293dd3bb1e91.patch";
|
|
|
|
sha256 = "17cjax546rkqv5kvwczjqjdd6vmlvcxjanz0296dlfq23j2wbx63";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-10-16 18:29:36 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://freedesktop.org/wiki/Software/pyxdg";
|
2018-10-16 18:29:36 +01:00
|
|
|
description = "Contains implementations of freedesktop.org standards";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|