depot/third_party/nixpkgs/pkgs/development/python-modules/serpent/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

34 lines
697 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, lib
, python
, isPy27
, enum34
, attrs
, pytz
}:
buildPythonPackage rec {
pname = "serpent";
version = "1.30.2";
src = fetchPypi {
inherit pname version;
sha256 = "72753820246a7d8486e8b385353e3bbf769abfceec2e850fa527a288b084ff7a";
};
propagatedBuildInputs = lib.optionals isPy27 [ enum34 ];
checkInputs = [ attrs pytz ];
checkPhase = ''
${python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "A simple serialization library based on ast.literal_eval";
homepage = "https://github.com/irmen/Serpent";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}