2018-10-28 18:03:57 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, python
|
|
|
|
, isPy27
|
|
|
|
, enum34
|
2019-10-26 23:58:10 +02:00
|
|
|
, attrs
|
|
|
|
, pytz
|
2018-10-28 18:03:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "serpent";
|
2019-10-24 08:47:48 +02:00
|
|
|
version = "1.28";
|
2018-10-28 18:03:57 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-26 23:58:10 +02:00
|
|
|
sha256 = "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk";
|
2018-10-28 18:03:57 +01:00
|
|
|
};
|
|
|
|
|
2020-05-04 20:32:01 +02:00
|
|
|
propagatedBuildInputs = lib.optionals isPy27 [ enum34 ];
|
2018-10-28 18:03:57 +01:00
|
|
|
|
2019-10-26 23:58:10 +02:00
|
|
|
checkInputs = [ attrs pytz ];
|
2018-10-28 18:03:57 +01:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} setup.py test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple serialization library based on ast.literal_eval";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/irmen/Serpent";
|
2018-10-28 18:03:57 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|