depot/third_party/nixpkgs/pkgs/development/python-modules/viewstate/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
633 B
Nix

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