2022-05-29 11:10:09 +02:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pkg-config,
|
2025-01-08 12:32:19 +01:00
|
|
|
setuptools,
|
2022-05-29 11:10:09 +02:00
|
|
|
fuse,
|
|
|
|
}:
|
2018-09-14 18:47:18 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fuse-python";
|
2025-01-08 12:32:19 +01:00
|
|
|
version = "1.0.9";
|
2025-01-08 12:32:19 +01:00
|
|
|
pyproject = true;
|
2018-09-14 18:47:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2025-01-08 12:32:19 +01:00
|
|
|
inherit version;
|
|
|
|
pname = "fuse_python";
|
|
|
|
hash = "sha256-ntWVd8NqshjXAKooOfAh8SwlKzVxhgV1crmOGbwqhYk=";
|
2018-09-14 18:47:18 +01:00
|
|
|
};
|
|
|
|
|
2025-01-08 12:32:19 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace-fail 'pkg-config' "${stdenv.cc.targetPrefix}pkg-config"
|
|
|
|
'';
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-08-25 12:07:09 +10:00
|
|
|
|
2025-01-08 12:32:19 +01:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
buildInputs = [ fuse ];
|
|
|
|
|
2021-01-22 11:35:26 +01:00
|
|
|
# no tests implemented
|
2018-09-14 18:47:18 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-22 11:35:26 +01:00
|
|
|
pythonImportsCheck = [ "fuse" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-29 11:10:09 +02:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2018-09-14 18:47:18 +01:00
|
|
|
description = "Python bindings for FUSE";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/libfuse/python-fuse";
|
2018-09-14 18:47:18 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|