Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, six, pytest-cov-stub, pytest-datadir, setuptools-scm,}:
buildPythonPackage rec { pname = "jproperties"; version = "2.1.1"; format = "setuptools";
src = fetchFromGitHub { owner = "Tblue"; repo = "python-jproperties"; rev = "v${version}"; hash = "sha256-O+ALeGHMNjW1dc9IRyLzO81k8DW2vbGjuZqXxgrhYjo="; };
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ pytest-cov-stub pytest-datadir pytestCheckHook ];
postPatch = '' substituteInPlace setup.py \ --replace "setuptools_scm ~= 3.3" "setuptools_scm" '';
disabledTestPaths = [ # TypeError: 'PosixPath' object... "tests/test_simple_utf8.py" ];
pythonImportsCheck = [ "jproperties" ];
meta = with lib; { description = "Java Property file parser and writer for Python"; mainProgram = "propconv"; homepage = "https://github.com/Tblue/python-jproperties"; license = with licenses; [ bsd3 ]; maintainers = with maintainers; [ fab ]; };}