1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 06:19:10 +03:00
nixpkgs/pkgs/development/python-modules/pysmbc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
727 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, samba
, pkg-config
, pythonOlder
}:
2017-09-29 21:15:52 +02:00
buildPythonPackage rec {
pname = "pysmbc";
version = "1.0.24";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-09-29 21:15:52 +02:00
src = fetchPypi {
inherit pname version;
hash = "sha256-zq3o1hHmPXKnXSYrNCptyDa2+AqzjqX9WtRD4ve+LO0=";
2017-09-29 21:15:52 +02:00
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
samba
];
# Tests would require a local SMB server
doCheck = false;
pythonImportsCheck = [
"smbc"
];
2017-09-29 21:15:52 +02:00
meta = with lib; {
2017-09-29 21:15:52 +02:00
description = "libsmbclient binding for Python";
homepage = "https://github.com/hamano/pysmbc";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ fab ];
2017-09-29 21:15:52 +02:00
};
}