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

36 lines
611 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, lib
, pytest
}:
buildPythonPackage rec {
pname = "viewstate";
version = "0.4.3";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "yuvadm";
repo = pname;
rev = "v${version}";
sha256 = "15s0n1lhkz0zwi33waqkkjipal3f7s45rxsj1bw89xpr4dj87qx5";
};
checkInputs = [
pytest
];
checkPhase = ''
pytest
'';
meta = {
description = ".NET viewstate decoder";
homepage = "https://github.com/yuvadm/viewstate";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
kamadorueda
];
};
}