diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pymarshal/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pymarshal/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pymarshal/default.nix b/nixpkgs/pkgs/development/python-modules/pymarshal/default.nix new file mode 100644 index 000000000000..0da93a6d8a43 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pymarshal/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, bson +, pytest +, pytest-cov +, pytest-runner +, pytestCheckHook +, pyyaml +, setuptools +}: + +buildPythonPackage rec { + pname = "pymarshal"; + version = "2.2.0"; + disabled = pythonOlder "3.0"; + + src = fetchFromGitHub { + owner = "stargateaudio"; + repo = pname; + rev = version; + sha256 = "sha256-Ds8JV2mtLRcKXBvPs84Hdj3MxxqpeV5muKCSlAFCj1A="; + }; + + nativeBuildInputs = [ + setuptools + pytest-runner + ]; + + propagatedBuildInputs = [ + bson + ]; + + checkInputs = [ + pytestCheckHook + bson + pytest + pytest-cov + pyyaml + ]; + + pytestFlagsArray = [ "test" ]; + + meta = { + description = "Python data serialization library"; + homepage = "https://github.com/stargateaudio/pymarshal"; + maintainers = with lib.maintainers; [ yuu ]; + license = lib.licenses.bsd2; + }; +} |