python3Packages.jproperties: init at 2.1.1
This commit is contained in:
parent
982ebfa2b8
commit
70b114a9f9
59
pkgs/development/python-modules/jproperties/default.nix
Normal file
59
pkgs/development/python-modules/jproperties/default.nix
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, six
|
||||||
|
, pytest-datadir
|
||||||
|
, setuptools-scm
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "jproperties";
|
||||||
|
version = "2.1.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Tblue";
|
||||||
|
repo = "python-jproperties";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-O+ALeGHMNjW1dc9IRyLzO81k8DW2vbGjuZqXxgrhYjo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-datadir
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "setuptools_scm ~= 3.3" "setuptools_scm"
|
||||||
|
substituteInPlace pytest.ini \
|
||||||
|
--replace "--cov=jproperties --cov-report=term --cov-report=html --cov-branch" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# TypeError: 'PosixPath' object...
|
||||||
|
"tests/test_simple_utf8.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"jproperties"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Java Property file parser and writer for Python";
|
||||||
|
homepage = "https://github.com/Tblue/python-jproperties";
|
||||||
|
license = with licenses; [ bsd3 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -4049,6 +4049,8 @@ in {
|
|||||||
inherit (self) systemd pytest;
|
inherit (self) systemd pytest;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jproperties = callPackage ../development/python-modules/jproperties { };
|
||||||
|
|
||||||
jpylyzer = callPackage ../development/python-modules/jpylyzer { };
|
jpylyzer = callPackage ../development/python-modules/jpylyzer { };
|
||||||
|
|
||||||
JPype1 = callPackage ../development/python-modules/JPype1 { };
|
JPype1 = callPackage ../development/python-modules/JPype1 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user