1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
41 lines
841 B
Nix
41 lines
841 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
pytestCheckHook,
|
|
testfixtures,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "logfury";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-EwpdrOq5rVNJJCUt33BIKqLJZmKzo4JafTCYHQO3aiY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
testfixtures
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "'setuptools_scm<6.0'" "'setuptools_scm'"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "logfury" ];
|
|
|
|
meta = {
|
|
description = "Python module that allows for responsible, low-boilerplate logging of method calls";
|
|
homepage = "https://github.com/ppolewicz/logfury";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ jwiegley ];
|
|
};
|
|
}
|