Files
nixpkgs/pkgs/development/python-modules/jproperties/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
six,
pytest-cov-stub,
pytest-datadir,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "jproperties";
version = "2.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "Tblue";
repo = "python-jproperties";
tag = "v${version}";
hash = "sha256-wnhEcPWAFUXR741/LZT3TXqxrU70JZe+90AkVEA3A+k=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "setuptools_scm ~= 3.3" "setuptools_scm"
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [ six ];
nativeCheckInputs = [
pytest-cov-stub
pytest-datadir
pytestCheckHook
];
disabledTestPaths = [
# TypeError: 'PosixPath' object...
"tests/test_simple_utf8.py"
];
pythonImportsCheck = [ "jproperties" ];
meta = {
description = "Java Property file parser and writer for Python";
homepage = "https://github.com/Tblue/python-jproperties";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "propconv";
};
}