python310Packages.xattr: add changelog to meta

- add pythonImportsCheck
- disable on older Python releases
This commit is contained in:
Fabian Affolter 2022-12-22 21:15:20 +01:00 committed by GitHub
parent 5d572714dc
commit 20688c1e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,18 +3,24 @@
, fetchPypi , fetchPypi
, python , python
, cffi , cffi
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "xattr"; pname = "xattr";
version = "0.10.1"; version = "0.10.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-wS59gf+qBgWzrIwiwplKjhipzxxZKHobdyKiKJyVLsU="; hash = "sha256-wS59gf+qBgWzrIwiwplKjhipzxxZKHobdyKiKJyVLsU=";
}; };
propagatedBuildInputs = [ cffi ]; propagatedBuildInputs = [
cffi
];
# https://github.com/xattr/xattr/issues/43 # https://github.com/xattr/xattr/issues/43
doCheck = false; doCheck = false;
@ -23,10 +29,14 @@ buildPythonPackage rec {
${python.interpreter} -m compileall -f xattr ${python.interpreter} -m compileall -f xattr
''; '';
pythonImportsCheck = [
"xattr"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/xattr/xattr";
description = "Python wrapper for extended filesystem attributes"; description = "Python wrapper for extended filesystem attributes";
homepage = "https://github.com/xattr/xattr";
changelog = "https://github.com/xattr/xattr/blob/v${version}/CHANGES.txt";
license = licenses.mit; license = licenses.mit;
}; };
} }