summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-11-28 20:30:40 -0500
committerBenjamin Hipple <bhipple@protonmail.com>2020-11-28 20:42:15 -0500
commitf2a2694cad2429c2d62b7bdd4c65432135374fbf (patch)
tree570ef060697e18ef73487028c4498793f7396a7a /pkgs
parentcbe614e01b2b49599418e110724b63e1db72d57b (diff)
python3Packages.hjson: init at 3.0.2
This library provides a human readable extension to JSON and is used as a dependency in packages like [qmk](https://github.com/qmk/qmk_cli) Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/hjson/default.nix24
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hjson/default.nix b/pkgs/development/python-modules/hjson/default.nix
new file mode 100644
index 000000000000..6a86a2000d2c
--- /dev/null
+++ b/pkgs/development/python-modules/hjson/default.nix
@@ -0,0 +1,24 @@
+{ stdenv
+, buildPythonPackage
+, fetchFromGitHub
+}:
+
+buildPythonPackage rec {
+ pname = "hjson";
+ version = "3.0.2";
+
+ # N.B. pypi src tarball does not have tests
+ src = fetchFromGitHub {
+ owner = "hjson";
+ repo = "hjson-py";
+ rev = "v${version}";
+ sha256 = "1jc7j790rcqnhbrfj4lhnz3f6768dc55aij840wmx16jylfqpc2n";
+ };
+
+ meta = with stdenv.lib; {
+ description = "A user interface for JSON";
+ homepage = "https://github.com/hjson/hjson-py";
+ license = licenses.mit;
+ maintainers = with maintainers; [ bhipple ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 191fc81d5c2f..debd4f743348 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2757,6 +2757,8 @@ in {
hiyapyco = callPackage ../development/python-modules/hiyapyco { };
+ hjson = callPackage ../development/python-modules/hjson { };
+
hkdf = callPackage ../development/python-modules/hkdf { };
hmmlearn = callPackage ../development/python-modules/hmmlearn { };