mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
Merge pull request #189651 from fmoda3/jsons
This commit is contained in:
commit
48b3a3460a
47
pkgs/development/python-modules/jsons/default.nix
Normal file
47
pkgs/development/python-modules/jsons/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, attrs
|
||||
, pytestCheckHook
|
||||
, typish
|
||||
, tzdata
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jsons";
|
||||
version = "1.6.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ramonhagenaars";
|
||||
repo = "jsons";
|
||||
rev = "v${version}";
|
||||
sha256 = "0sdwc57f3lwzhbcapjdbay9f8rn65rlspxa67a2i5apcgg403qpc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
typish
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
attrs
|
||||
pytestCheckHook
|
||||
tzdata
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# These tests are based on timings, which fail
|
||||
# on slow or overloaded machines.
|
||||
"tests/test_performance.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jsons"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Turn Python objects into dicts or json strings and back";
|
||||
homepage = "https://github.com/ramonhagenaars/jsons";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fmoda3 ];
|
||||
};
|
||||
}
|
@ -4804,6 +4804,8 @@ in {
|
||||
|
||||
jsonrpc-websocket = callPackage ../development/python-modules/jsonrpc-websocket { };
|
||||
|
||||
jsons = callPackage ../development/python-modules/jsons { };
|
||||
|
||||
jsonschema = callPackage ../development/python-modules/jsonschema { };
|
||||
|
||||
jsonstreams = callPackage ../development/python-modules/jsonstreams { };
|
||||
|
Loading…
Reference in New Issue
Block a user