aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/fastjsonschema/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/fastjsonschema/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/fastjsonschema/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/fastjsonschema/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/fastjsonschema/default.nix
new file mode 100644
index 000000000000..b49f31e40221
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/fastjsonschema/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+ # Check inputs
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "fastjsonschema";
+ version = "2.14.4";
+
+ disabled = pythonOlder "3.3";
+
+ src = fetchFromGitHub {
+ owner = "horejsek";
+ repo = "python-fastjsonschema";
+ rev = "v${version}";
+ fetchSubmodules = true;
+ sha256 = "0c3q31lqzrc52gacnqc271k5952qbyl0z4kagsqvl7fiwk84hqlz";
+ };
+
+ checkInputs = [ pytestCheckHook ];
+ dontUseSetuptoolsCheck = true;
+ disabledTests = [
+ "benchmark"
+
+ # these tests require network access
+ "remote ref"
+ "definitions"
+ ];
+
+ meta = with lib; {
+ description = "Fast JSON schema validator for Python.";
+ homepage = "https://horejsek.github.io/python-fastjsonschema/";
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ drewrisinger ];
+ };
+}