mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
8811817e3e
The package was still using `disabledTestFiles` which should have been migrated to `disabledTestPaths`, which led to reinclusion of a test file that requires a dependency (oslotest), which we have not packaged yet.
43 lines
805 B
Nix
43 lines
805 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, ply
|
|
, pytestCheckHook
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonpath-ng";
|
|
version = "1.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "h2non";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1cxjwhx0nj85a3awnl7j6afnk07awzv45qfwxl5jqbbc9cxh5bd6";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
decorator
|
|
ply
|
|
six
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
disabledTestPaths = [
|
|
# Exclude tests that require oslotest
|
|
"tests/test_jsonpath_rw_ext.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "jsonpath_ng" ];
|
|
|
|
meta = with lib; {
|
|
description = "JSONPath implementation for Python";
|
|
homepage = "https://github.com/h2non/jsonpath-ng";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|