1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 sphinx, 8}: 9 10buildPythonPackage rec { 11 pname = "roman-numerals-py"; 12 version = "3.1.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "AA-Turner"; 17 repo = "roman-numerals"; 18 tag = "v${version}"; 19 hash = "sha256-YLF09jYwXq48iMvmqbj/cocYJPp7RsCXzbN0DV9gpis="; 20 }; 21 22 postPatch = '' 23 ls -lah 24 cp LICENCE.rst python/ 25 26 cd python 27 ''; 28 29 build-system = [ flit-core ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "roman_numerals" ]; 34 35 meta = { 36 description = "Manipulate roman numerals"; 37 homepage = "https://github.com/AA-Turner/roman-numerals/"; 38 changelog = "https://github.com/AA-Turner/roman-numerals/blob/${src.tag}/CHANGES.rst"; 39 license = lib.licenses.cc0; 40 teams = sphinx.meta.teams; 41 mainProgram = "roman-numerals-py"; 42 platforms = lib.platforms.all; 43 }; 44}