depot/third_party/nixpkgs/pkgs/development/python-modules/anyjson/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

22 lines
574 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, nose }:
buildPythonPackage rec {
pname = "anyjson";
version = "0.3.3";
# The tests are written in a python2 syntax but anyjson is python3 valid
doCheck = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba";
};
buildInputs = [ nose ];
meta = with lib; {
homepage = "https://bitbucket.org/runeh/anyjson/";
description = "Wrapper that selects the best available JSON implementation";
license = licenses.bsd2;
};
}