If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
43 lines
930 B
Nix
43 lines
930 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pykerberos,
|
|
pytestCheckHook,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pure-sasl";
|
|
version = "0.6.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thobbs";
|
|
repo = "pure-sasl";
|
|
tag = version;
|
|
hash = "sha256-AHoZ3QZLr0JLE8+a2zkB06v2wRknxhgm/tcEPXaJX/U=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace tests/unit/test_mechanism.py \
|
|
--replace 'from mock import patch' 'from unittest.mock import patch'
|
|
'';
|
|
|
|
pythonImportsCheck = [ "puresasl" ];
|
|
|
|
nativeCheckInputs = [
|
|
pykerberos
|
|
pytestCheckHook
|
|
six
|
|
];
|
|
|
|
meta = {
|
|
description = "Reasonably high-level SASL client written in pure Python";
|
|
homepage = "http://github.com/thobbs/pure-sasl";
|
|
changelog = "https://github.com/thobbs/pure-sasl/blob/0.6.2/CHANGES.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jherland ];
|
|
};
|
|
}
|