Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 53 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 six, 7 pytest-cov-stub, 8 pytest-datadir, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "jproperties"; 14 version = "2.1.1"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "Tblue"; 19 repo = "python-jproperties"; 20 rev = "v${version}"; 21 hash = "sha256-O+ALeGHMNjW1dc9IRyLzO81k8DW2vbGjuZqXxgrhYjo="; 22 }; 23 24 nativeBuildInputs = [ setuptools-scm ]; 25 26 propagatedBuildInputs = [ six ]; 27 28 nativeCheckInputs = [ 29 pytest-cov-stub 30 pytest-datadir 31 pytestCheckHook 32 ]; 33 34 postPatch = '' 35 substituteInPlace setup.py \ 36 --replace "setuptools_scm ~= 3.3" "setuptools_scm" 37 ''; 38 39 disabledTestPaths = [ 40 # TypeError: 'PosixPath' object... 41 "tests/test_simple_utf8.py" 42 ]; 43 44 pythonImportsCheck = [ "jproperties" ]; 45 46 meta = with lib; { 47 description = "Java Property file parser and writer for Python"; 48 mainProgram = "propconv"; 49 homepage = "https://github.com/Tblue/python-jproperties"; 50 license = with licenses; [ bsd3 ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}