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
40 lines
780 B
Nix
40 lines
780 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.8.2";
|
|
pname = "javaproperties";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jwodder";
|
|
repo = "javaproperties";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-8Deo6icInp7QpTqa+Ou6l36/23skxKOYRef2GbumDqo=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
nativeCheckInputs = [
|
|
python-dateutil
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [ "time" ];
|
|
|
|
disabledTestPaths = [ "test/test_propclass.py" ];
|
|
|
|
meta = {
|
|
description = "Python library for reading and writing Java .properties files";
|
|
homepage = "https://github.com/jwodder/javaproperties";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|